#import <ThreatInfosFuture.h>
ThreatInfosFuture class provides the means to manipulate and check the status of the scan without handler it represents and to retrieve the threats found on scan.
◆ isResultReady:withError:()
- (BOOL) isResultReady: |
|
(BOOL *_Nonnull) |
resultReady |
withError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Checks if the result of the scan is ready.
- Parameters
-
resultReady | Will be set to true if result of scan is ready, false otherwise |
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ resultWithError:()
- (NSArray<ThreatInfo *> * _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 threats found or nil in case an error occured
The documentation for this class was generated from the following file: