Monitor Threats
Monitor the status of current threats and receive notifications when the status changes.
-
This class provides the status for all threats or specific threat types. It also includes the overall risk level.
Add an observer for
See morethreatStatusChangedNotification
using NotificationCenter to be alerted of new threats. CheckThreatStatus.threatStatusChangedNotification
for the details.Declaration
Swift
@objc public class ThreatStatus : NSObject, InitializationStateProvider
-
Interface for retrieving threat details for a specific threat type.
This is an abstract class and it shoud not be used directly. Create your own subclass to use the functionality of this class.
See moreDeclaration
Swift
@objc public class Threat : NSObject, InitializationStateProvider
-
Enumeration to indicate the level of risk posed by a threat.
The overall threat level is returned as part of
overallThreatLevel
property ofThreatStatus
. The risk for some specific threat (in code they’re represented asThreat
subclasses) can be found inriskLevel
property.To determine if the specific threat is being evaluated you can use
See moreisDetectionEnabled
property of theThreat
subclassDeclaration
Swift
@objc public enum ThreatLevel : Int, CaseIterable
-
The enumeration for types of threats detected by the runtime.
See moreDeclaration
Swift
@objc public enum ThreatType : Int, CaseIterable
-
Provide details of threats related to the device. A range of checks are performed to determine the security health of the user’s device. For example, if the device is jailbroken, if the user has set a screen lock or if a debugger is attached to the process.
See moreDeclaration
Swift
@objc public final class ThreatDeviceSecurity : Threat