Table of contents

DSImageSourceStateListener

The DSImageSourceStateListener protocol defines methods for monitoring the state of the ImageSourceAdapter.

Definition

Assembly: DynamsoftCaptureVisionBundle.xcframework

  • Objective-C
  • Swift
  1. @protocol DSImageSourceStateListener <NSObject>
    
  2. 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
  1. - (void)onImageSourceStateReceived:(DSImageSourceState)state;
    
  2. func onImageSourceStateReceived(_ state: ImageSourceState)
    

Parameters

state: One of the DSImageSourceState that indicates the state of the ImageSourceAdapter.

Code Snippet

  • Objective-C
  • Swift
  1. [stateListener onImageSourceStateReceived:DSImageSourceStateConnected];
    
  2. stateListener.onImageSourceStateReceived(ImageSourceState.connected)
    

This page is compatible for: