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
senderThe camera device sending this event
imageThe 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
senderThe camera device sending this event
captureThe 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
senderThe 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
senderThe camera device sending this event
liveViewFrameThe send liveview image data
CameraEventListener Protocol Reference