MoSync 3.0.1
Camera Properties

Defines

#define MA_CAMERA_FLASH_MODE   "flash-mode"
 Sets the flash mode for the camera.
#define MA_CAMERA_FOCUS_MODE   "focus-mode"
 Sets the focus mode for the camera.
#define MA_CAMERA_IMAGE_FORMAT   "image-format"
 Sets the image format for the camera.
#define MA_CAMERA_ZOOM   "zoom"
 Sets the zoom level for the camera.
#define MA_CAMERA_MAX_ZOOM   "max-zoom"
 Provides the information about the maximum supported zoom level on the device.
#define MA_CAMERA_ZOOM_SUPPORTED   "zoom-supported"
 Indicates that if the device supports zoom or not.
#define MA_CAMERA_FLASH_SUPPORTED   "flash-supported"
 Indicates that if the device has a flash or not.

Define Documentation

#define MA_CAMERA_FLASH_MODE   "flash-mode"

Sets the flash mode for the camera.

Valid values
can be one of the MA_CAMERA_FLASH_ON, MA_CAMERA_FLASH_OFF, MA_CAMERA_FLASH_AUTO, MA_CAMERA_FLASH_TORCH constants
Example
        maCameraSetProperty(MAW_CAMERA_FLASH_MODE, MA_CAMERA_FLASH_AUTO);
#define MA_CAMERA_FOCUS_MODE   "focus-mode"

Sets the focus mode for the camera.

Valid values
can be one of the MA_CAMERA_FOCUS_AUTO, MA_CAMERA_FOCUS_INFINITY, MA_CAMERA_FOCUS_MACRO, MA_CAMERA_FOCUS_FIXED constants
Example
        maCameraSetProperty(MAW_CAMERA_FOCUS_MODE, MA_CAMERA_FOCUS_AUTO);
#define MA_CAMERA_IMAGE_FORMAT   "image-format"

Sets the image format for the camera.

Valid values
can be one of the MA_CAMERA_IMAGE_JPEG, MA_CAMERA_IMAGE_RAW constants
Example
        maCameraSetProperty(MAW_CAMERA_IMAGE_FORMAT, MA_CAMERA_IMAGE_JPEG);
#define MA_CAMERA_ZOOM   "zoom"

Sets the zoom level for the camera.

Valid values
an int string that can be between 0 and MA_CAMERA_MAX_ZOOM
Example
        maCameraSetProperty(MAW_CAMERA_ZOOM, "1");
#define MA_CAMERA_MAX_ZOOM   "max-zoom"

Provides the information about the maximum supported zoom level on the device.

Operations
Get only.
#define MA_CAMERA_ZOOM_SUPPORTED   "zoom-supported"

Indicates that if the device supports zoom or not.

Valid values
the returned value is "true" for support and "false" for lack of support.
Operations
Get only.
#define MA_CAMERA_FLASH_SUPPORTED   "flash-supported"

Indicates that if the device has a flash or not.

Valid values
the returned value is "true" for support and "false" for lack of support.
Operations
Get only.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines