ICameraManager
Interface that may be used to manage cameras on Android device.
Methods
addCameraEventsListener
void
addCameraEventsListener( cameraEventsListener)
Add ICameraEventsListener to be notified about camera events
Parameters
cameraEventsListener:
ICameraEventsListener instance
Returns
type:
void
enableCameraFlash
void
enableCameraFlash(boolean
enable)
Enable or disable camera flash if it exists.
Camera flash is disabled by default.
Can be called in any camera state.
Parameters
enable:
boolean
True, if the camera flash should be enabled, false otherwise.
Returns
type:
void
getCameraDeviceNames
String[]
getCameraDeviceNames()
Get available camera device names.
Returns
type:
String[]
getCameraSupportedResolutions
List<CameraResolution>
getCameraSupportedResolutions(String
cameraName)
Get all supported resolutions of the specified camera.
Parameters
cameraName:
String
Camera name to request supported resolutions
Returns
type:
List<CameraResolution>
removeCameraEventsListener
void
removeCameraEventsListener( cameraEventsListener)
Remove previously added ICameraEventsListener
Parameters
cameraEventsListener:
ICameraEventsListener instance
Returns
type:
void
setCamera
void
setCamera(int
cameraIndex, quality)
Select camera and local video frame resolution quality.
Parameters
cameraIndex:
int
Should be 0 for back facing camera and 1 for front facing camera
quality:
Quality for local video
Returns
type:
void
setCamera
void
setCamera(int
cameraIndex, int
frameWidth, int
frameHeight)
Select camera and local video frame resolution. Camera will capture frames in a format that is as close as possible to frameWidth x frameHeight
Parameters
cameraIndex:
int
Should be 0 for back facing camera or 1 for front facing camera
frameWidth:
int
Camera resolution width.
frameHeight:
int
Camera resolution height
Returns
type:
void