CameraEventListener
public protocol CameraEventListener: class
The protocol for receiving event from a camera device.
-
imageStored(sender:image:)
Default implementationInvoked 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 implementationInvoked 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 implementationInvoked 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
-
liveViewFrameUpdated(sender:liveViewFrame:)
Default implementationInvoked 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