CameraEventListener

public protocol CameraEventListener: class

The protocol for receiving event from a camera device.

  • imageStored(sender:image:) Default implementation

    Invoked when a image was stored in storages of the camera device.

    Default Implementation

    Declaration

    Swift

    func imageStored(sender: CameraDevice, image: CameraImage)

    Parameters

    sender

    The camera device sending this event

    image

    The added image

  • captureComplete(sender:capture:) Default implementation

    Invoked when a capture that has been started by this API was completed.

    Default Implementation

    Declaration

    Swift

    func captureComplete(sender: CameraDevice, capture: Capture)

    Parameters

    sender

    The camera device sending this event

    capture

    The completed capture

  • deviceDisconnected(sender:) Default implementation

    Invoked when the connection was broken unexpectedly. If call disconnect() method, this event is not invoked.

    Default Implementation

    Declaration

    Swift

    func deviceDisconnected(sender: CameraDevice)

    Parameters

    sender

    The camera device sending this event

  • Invoked when a liveview image data was send.

    Default Implementation

    Declaration

    Swift

    func liveViewFrameUpdated(sender: CameraDevice, liveViewFrame: Data)

    Parameters

    sender

    The camera device sending this event

    liveViewFrame

    The send liveview image data