DSCaptureStateListener
The DSCaptureStateListener
protocol defines the methods for monitoring the capture state.
Definition
Assembly: DynamsoftCore.xcframework
- Objective-C
- Swift
@protocol DSCaptureStateListener <NSObject>
protocol DSCaptureStateListener : NSObjectProtocol
Methods
Method | Description |
---|---|
onCapturedStateChanged |
The method for monitoring the capture state. |
onCapturedStateChanged
The method for monitoring the capture state.
- Objective-C
- Swift
- (void)onCapturedStateChanged:(DSCaptureState)state;
func onCapturedStateChanged(_ state: DSCaptureState)
Parameters
state
: One of the DSCaptureState
value that indicates the capture state.
Code Snippet
- Objective-C
- Swift
[self.delegate onCapturedStateChanged:state];
delegate?.onCapturedStateChanged(state)