camera_unit_t

Represents the camera units on the device.

Synopsis:

#include <camera/camera_api.h>
 
typedef enum {
      CAMERA_UNIT_NONE = 0   
      CAMERA_UNIT_FRONT   
      CAMERA_UNIT_REAR   
      CAMERA_UNIT_DESKTOP   
      CAMERA_UNIT_SECONDARY_DESKTOP   
      CAMERA_UNIT_NUM_UNITS   
} camera_unit_t;

Since:

BlackBerry 10.0.0

Data:

CAMERA_UNIT_NONE
No specific camera specified.
CAMERA_UNIT_FRONT
The camera on the front of the device.

The front of a handset is the side which typically has a screen and faces the user.

CAMERA_UNIT_REAR
The camera on the rear of the device.
CAMERA_UNIT_DESKTOP
The virtual desktop camera used for sharing your desktop.

Sharing your desktop is a capability that's available for some devices.

CAMERA_UNIT_SECONDARY_DESKTOP
The virtual secondary desktop camera used for sharing your secondary screen desktop output.

Sharing your secondary desktop is a capability that's available for some devices.

Since: BlackBerry 10.2.0

CAMERA_UNIT_NUM_UNITS
For internal use only.

The value is used to determine the maximum number of cameras supported.

Library:

libcamapi (For the qcc command, use the -l camapi option to link against this library)

Description:

It is possible for a device to have multiple cameras units.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus