CameraEventTypes
Camera events listener to be notified about camera events.
Constants
CameraDisconnected
Triggered when a camera is disconnected. Handler function receives the event with the following parameters as an argument.
Parameters
name:
string
Name of the event.
CameraError
Triggered when a camera can not be opened or any camera exception happens. Handler function receives the event with the following parameters as an argument.
Parameters
error:
string
Description of error occurred.
name:
string
Name of the event.
CameraSwitchDone
Triggered when a camera switch has been successful. Handler function receives the event with the following parameters as an argument.
Parameters
isFrontCamera:
boolean
Whether the new camera is a front facing camera.
name:
string
Name of the event.
CameraSwitchError
Triggered when a camera switch is failed, e.g. camera is stopped or only one camera is available. Handler function receives the event with the following parameters as an argument.
Parameters
error:
string
Description of error occurred.
name:
string
Name of the event.