layout | title | description | keywords | needGenerateH3Content | needAutoGenerateSidebar | noTitleIndex |
---|---|---|---|---|---|---|
default-layout |
DSIntermediateResultManager - Dynamsoft Core Module iOS Edition API Reference |
The class DSIntermediateResultManager of Dynamsoft Core Module manages intermediate results generated during data capturing. It provides methods to add and remove intermediate result receivers, as well as to get original image data using an image hash id. |
intermediate result manager, objective-c, swift |
true |
true |
true |
The DSIntermediateResultManager
class manages intermediate results generated during data capturing. It provides methods to add and remove intermediate result receivers, as well as to get original image data using an image hash id.
Assembly: DynamsoftCore.framework
>- Objective-C >- Swift > >1. ```objc @interface DSIntermediateResultManager: NSObject ``` 2. ```swift class IntermediateResultManager : NSObject ```Method | Description |
---|---|
addResultReceiver |
Adds an intermediate result receiver. |
removeResultReceiver |
Removes an intermediate result receiver. |
getOriginalImage |
Gets the original image data using the image's hash ID. |
Adds an intermediate result receiver to an IntermediateResultManager
object.
Parameters
receiver
: A delegate object of DSIntermediateResultReceiver
.
Return Value
A BOOL
value that indicates whether the result receiver is added successfully.
Code Snippet
>- Objective-C >- Swift > >1. ```objc BOOL result = [resultManager addResultReceiver:receiver]; ``` 2. ```swift resultManager.addResultReceiver(receiver) ```Removes an intermediate result receiver from an IntermediateResultManager
object.
Parameters
receiver
: A delegate object of DSIntermediateResultReceiver
.
Return Value
A BOOL
value that indicates whether the result receiver is removed successfully.
Code Snippet
>- Objective-C >- Swift > >1. ```objc result = [resultManager removeResultReceiver:receiver]; ``` 2. ```swift resultManager.removeResultReceiver(receiver) ```Gets the original image data using the image's hash ID.
>- Objective-C >- Swift > >1. ```objc - (DSImageData)getOriginalImage:(NSString)imageHashId; ``` 2. ```swift func getOriginalImage(_ imageHashId: String) -> DSImageData ```Parameters
imageHashId
: The image hash ID.
Return Value
The original image data as DSImageData
.
Code Snippet
>- Objective-C >- Swift > >1. ```objc DSImageData *imageData = [resultManager getOriginalImage:imageHashId]; ``` 2. ```swift let imageData = resultManager.getOriginalImage(imageHashId) ```