DSImageSourceStateListener
The DSImageSourceStateListener protocol defines methods for monitoring the state of the ImageSourceAdapter.
Definition
Assembly: DynamsoftCaptureVisionBundle.xcframework
- 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: ImageSourceState)
Parameters
state: One of the DSImageSourceState that indicates the state of the ImageSourceAdapter.
Code Snippet
- Objective-C
- Swift
[stateListener onImageSourceStateReceived:DSImageSourceStateConnected];stateListener.onImageSourceStateReceived(ImageSourceState.connected)