Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

DSObservationParameters

The DSObservationParameters class is used to set filter conditions for the DSIntermediateResultReceiver, so that only intermediate results meeting specific conditions will be called back.

Definition

Assembly: DynamsoftCore.framework

  • Objective-C
  • Swift
  1. @interface DSObservationParameters : NSObject
    
  2. class ObservationParameters : NSObject
    

Methods

Method Description
addObservedTask Adds observed task name to be notified when relevant results are available.
removeObservedTask Remove the observed task name so that intermediate results generated by the task are not notified.
isTaskObserved Check whether the specified task was observed.

Attributes

Attributes Type Description
resultUnitTypesOnlyForInput DSIntermediateResultUnitType Defines the type of intermediate result unit that indicates skipping default calculations and replacing with input data units.

addObservedTask

Adds observed task name to be notified when relevant results are available.

  • Objective-C
  • Swift
  1. -(void)addObservedTask:(NSString *)taskName;
    
  2. func addObservedTask(_ taskName: String)
    

Parameters

taskName: Specify a task name to add to the observation list.

Code Snippet

  • Objective-C
  • Swift
  1. [observationParameters addObservedTask:@"TextRecognition"];
    
  2. observationParameters.addObservedTask("TextRecognition")
    

removeObservedTask

Remove the observed task name so that intermediate results generated by the task are not notified.

  • Objective-C
  • Swift
  1. -(void)removeObservedTask:(NSString*)taskName;
    
  2. func removeObservedTask(_ taskName: String)
    

Parameters

taskName: Specify a task name to remove from the observation list.

Code Snippet

  • Objective-C
  • Swift
  1. [observationParameters removeObservedTask:@"TextRecognition"];
    
  2. observationParameters.removeObservedTask("TextRecognition")
    

isTaskObserved

Check whether the specified task was observed.

  • Objective-C
  • Swift
  1. -(BOOL)isTaskObserved:(NSString*)taskName;
    
  2. func isTaskObserved(_ taskName: String) -> Bool
    

Parameters

taskName: Specify a task name to check the observation state.

Return Value

A BOOL value that indicates whether the specified task is observed.

Code Snippet

  • Objective-C
  • Swift
  1. BOOL observed = [observationParameters isTaskObserved:@"TextRecognition"];
    
  2. let observed = observationParameters.isTaskObserved("TextRecognition")
    

resultUnitTypesOnlyForInput

Defines the type of intermediate result unit that indicates skipping default calculations and replacing with input data units.

@property (nonatomic, nullable, copy) DSIntermediateResultUnitType resultUnitTypesOnlyForInput;

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 2.x
    • Version 2.2.10
    • Version 2.0.21
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.2.10
    • Version 2.0.21
    • Version 2.0.20
    • Version 2.0.10
  • Version 1.x
    • Version 1.2.1
    • Version 1.2.0
    • Version 1.1.0
    • Version 1.0.0
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
    • Version 1.1.13
    • Version 1.1.12
    • Version 1.1.11
    • Version 1.1.9
    • Version 1.1.8
    • Version 1.1.7
    • Version 1.1.6
    • Version 1.1.5
    • Version 1.1.4
    • Version 1.1.3
    • Version 1.1.2
    • Version 1.1.1
    • Version 1.1.0
    • Version 1.0.0
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support