#import <ClassificationFuture.h>
ClassificationFuture class provides the means to manipulate and check the status of the classify action it represents and to retrieve the classification found on classify.
◆ isResultReady:withError:()
| - (BOOL) isResultReady: |
|
(BOOL *_Nonnull) |
resultReady |
| withError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Checks if the result of classify is ready.
- Parameters
-
| resultReady | Will be set to true if the result of classify is ready, false otherwise |
| error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ resultWithError:()
| - (Classification* _Nullable) resultWithError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
Returns the result in the future. If the result is not immediately available, this function will block and wait for the result to become available.
- Parameters
-
| error | The error representing the reason for the failure |
- Returns
- The classification found or nil in case an error occured
The documentation for this class was generated from the following file: