Rate this page:

CameraEventTypes

Android

Camera events listener to be notified about camera events.

Constants

CameraDisconnected

Copy URL
Android

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

Copy URL
Android

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

Copy URL
Android

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

Copy URL
Android

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.