Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
DSImageSourceStateListener
The DSImageSourceStateListener
protocol defines methods for monitoring the state of the ImageSourceAdapter.
Definition
Assembly: DynamsoftCore.framework
- Objective-C
- Swift
@protocol DSImageSourceStateListener <NSObject>
protocol ImageSourceStateListener : NSObject
Methods
Method | Description |
---|---|
onImageSourceStateReceived |
The methods for monitoring the state of the ImageSourceAdapter. |
onImageSourceStateReceived
The methods for monitoring the state of the ImageSourceAdapter.
- Objective-C
- Swift
- (void)onImageSourceStateReceived:(DSImageSourceState)state;
func onImageSourceStateReceived(_ state: DSImageSourceState)
Parameters
state
: One of the DSImageSourceState that indicates the state of the ImageSourceAdapter.
Code Snippet
- Objective-C
- Swift
[stateListener onImageSourceStateReceived:DSImageSourceStateConnected];
stateListener.onImageSourceStateReceived(DSImageSourceState.connected)