Rate this page:

CameraEventTypes

Android

Camera events listener to be notified about camera events

Constants

CameraDisconnected

Copy URL
Android

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

Copy URL
Android

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

Copy URL
Android

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

Copy URL
Android

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