Version: Smart Feature Phone 3.0

CameraManager.getListOfCameras()

Description#

This method is used to get an Array of identifiers of all the cameras available on the device.


Syntax#

var cameras = navigator.b2g.cameras.getListOfCameras();

Return Value#

camera

       an Array of identifiers of all cameras available.


Permissions#

"permissions": {
"camera": {
"description": "Required for accessing cameras on the device."
}
}