Rate this page:

ICameraEventsListener

Camera events listener to be notified about camera events

Methods

onCameraDisconnected

Copy URL

void

onCameraDisconnected()

Invoked when camera is disconnected

Returns

  • type:

    void

onCameraError

Copy URL

void

onCameraError(

String

errorDescription
)

Invoked when camera can not be opened or any camera exception happens

Parameters

  • errorDescription:

    String

    Description of error occurred

Returns

  • type:

    void

onCameraSwitchDone

Copy URL

void

onCameraSwitchDone(

boolean

isFrontCamera
)

Invoked when camera switch was successful

Parameters

  • isFrontCamera:

    boolean

    True if new camera is front facing camera

Returns

  • type:

    void

onCameraSwitchError

Copy URL

void

onCameraSwitchError(

String

errorDescription
)

Invoked when camera switch is failed, e.g. camera is stopped or only one camera is available

Parameters

  • errorDescription:

    String

    Description of error occurred

Returns

  • type:

    void