The camera access mode flags that are passed to the camera_open() function to indicate the type of access that is required.
#include <camera/camera_api.h>
enumĀ {
CAMERA_MODE_PREAD = 1<<0
CAMERA_MODE_PWRITE = 1<<1
CAMERA_MODE_DREAD = 1<<2
CAMERA_MODE_DWRITE = 1<<3
CAMERA_MODE_ROLL = 1<<4
CAMERA_MODE_RO = (CAMERA_MODE_PREAD | CAMERA_MODE_DREAD)
CAMERA_MODE_RW = (CAMERA_MODE_PREAD | CAMERA_MODE_PWRITE |
CAMERA_MODE_DREAD | CAMERA_MODE_DWRITE)
};
BlackBerry 10.0.0
The camera roll creates uniquely named files in the camera roll directory.
Use this as an alias for CAMERA_MODE_PREAD, CAMERA_MODE_PWRITE, CAMERA_MODE_DREAD, and CAMERA_MODE_DWRITE.