SIGN UP

CameraManager

Class that may be used to manage cameras on a device.

Methods

getInstance

getInstance(): CameraManager

Get CameraManager instance to control camera hardware settings

Returns

off

off(event: CameraEvents, handler: function): void

Remove a handler for the specified camera event. ANDROID ONLY.

Parameters

on

on(event: CameraEvents, handler: function): void

Register a handler for the specified camera event. One event can have more than one handler. Use the CameraManager.off method to delete a handler. ANDROID ONLY.

Parameters

setCameraResolution

setCameraResolution(width: number, height: number): void

Set a local camera resolution

Parameters

  • width:

    number

    Camera resolution width

  • height:

    number

    Camera resolution height

switchCamera

switchCamera(cameraType: CameraType): void

Select camera

Parameters