Frame Source Listener
Defined in namespace Scandit.DataCapture.Core.Source
- IFrameSourceListener
interface IFrameSourceListenerAdded in version 6.16.0
- OnStateChanged()
voidOnStateChanged(IFrameSource source, FrameSourceState newState)Added in version 6.16.0
Called whenever the frame source’s IFrameSource.CurrentState changes, typically after IFrameSource.SwitchToDesiredStateAsync(). Depending on the frame source and platform, the new state can be one of the transition values listed on FrameSourceState, such as FrameSourceState.Starting or FrameSourceState.Stopping, reported before the state the transition leads to.
Adding a listener does not trigger this callback; read IFrameSource.CurrentState to get the state at the time the listener is added.
- OnObservationStarted()
voidOnObservationStarted(IFrameSource source)Added in version 6.16.0
Called when the listener has been added to the frame source and is from now on receiving events. This is the first callback the listener receives.
- OnObservationStopped()
voidOnObservationStopped(IFrameSource source)Added in version 6.16.0
Called when the listener has been removed from the frame source and is no longer receiving events.
- OnFrameOutput()
voidOnFrameOutput(IFrameSource source, IFrameData frame)Added in version 6.16.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.
- FrameOutputEventArgs
class FrameOutputEventArgs : EventArgs
Added in version 6.16.0
Provides data for the Camera.FrameOutput event.
- FrameOutputEventArgs()
FrameOutputEventArgs(IFrameSource source, IFrameData frameData)
Added in version 6.16.0
- Source
IFrameSource Source { get; }
Added in version 6.16.0
- FrameData
IFrameData FrameData { get; }
Added in version 6.16.0
- FrameSourceStateChangedEventArgs
class FrameSourceStateChangedEventArgs : EventArgs
Added in version 6.16.0
Provides data for the Camera.StateChanged event.
- FrameSourceStateChangedEventArgs()
FrameSourceStateChangedEventArgs(IFrameSource source, FrameSourceState newState)
Added in version 6.16.0
- Source
IFrameSource Source { get; }
Added in version 6.16.0
- NewState
FrameSourceState NewState { get; }
Added in version 6.16.0