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