Frame Source Listener
Defined in framework ScanditCaptureCore
- FrameSourceListener
protocol FrameSourceListener : NSObjectProtocol
Added in version 6.0.0
- frameSource
open func frameSource(_ source: any FrameSource, didChange newState: FrameSourceState) ->
VoidAdded in version 6.0.0
- didStartObserving
optional func didStartObserving(_ source: any FrameSource) ->
VoidAdded in version 6.0.0
- didStopObserving
optional func didStopObserving(_ source: any FrameSource) ->
VoidAdded in version 6.0.0
- frameSource
open func frameSource(_ source: any FrameSource, didOutputFrame frame: any FrameData) ->
VoidAdded in version 6.0.0
Event that is emitted whenever a new frame is available. Consumers of this frame source can listen to this event to receive the frames produced by the frame source. The frames are reference counted, if the consumers require access to the frames past the lifetime of the callback, they need to increment the reference count of the frame by one and release it once they are done processing it.