#import <ThreatHandler.h>
ThreatHandler class provides the means to define your own stop scan condition by handling each threat as it is discovered.
◆ handleThreat:()
- (sensitivityio_tribool_t) handleThreat: |
|
(ThreatInfo *_Nonnull) |
threatInfo |
|
Override this method to handle the found threat and decide to stop or continue scanning. If not overridden it always returns sensitivityio_3b_indeterminate.
- See also
- sensitivityio/c_base/tribool.h
- Parameters
-
threatInfo | The threat found on scan, based on which the handler should stop or continue the scan |
- Returns
- Return sensitivityio_3b_true to continue scanning, sensitivityio_3b_false to stop scanning and sensitivityio_3b_indeterminate in case of error.
◆ initWithData:()
- (instancetype _Nonnull) initWithData: |
|
(id _Nonnull) |
data |
|
Initializes a new object immediately after memory for it has been allocated
- Note
- The designated initializer
- Parameters
-
data | The helper data of this threat handler |
- Returns
- The initialized object
◆ data
Helper data used to handle threats one at a time.
The documentation for this class was generated from the following file: