layout | title | description | keywords | needGenerateH3Content | needAutoGenerateSidebar | noTitleIndex |
---|---|---|---|---|---|---|
default-layout |
DSCaptureStateListener - Dynamsoft Capture Vision Router Module iOS Edition API Reference |
The protocol DSCaptureStateListener of Dynamsoft Capture Vision Router Module defines the methods for monitoring the capture state. |
capture state, monitoring, objective-c, swift |
true |
true |
true |
The DSCaptureStateListener
protocol defines the methods for monitoring the capture state.
Assembly: DynamsoftCore.framework
>- Objective-C >- Swift > >1. ```objc @protocol DSCaptureStateListener ``` 2. ```swift protocol DSCaptureStateListener : NSObjectProtocol ```Method | Description |
---|---|
onCapturedStateChanged |
The method for monitoring the capture state. |
The method for monitoring the capture state.
>- Objective-C >- Swift > >1. ```objc - (void)onCapturedStateChanged:(DSCaptureState)state; ``` 2. ```swift func onCapturedStateChanged(_ state: DSCaptureState) ```Parameters
state
: One of the DSCaptureState
value that indicates the capture state.
Code Snippet
>- Objective-C >- Swift > >1. ```objc [self.delegate onCapturedStateChanged:state]; ``` 2. ```swift delegate?.onCapturedStateChanged(state) ```