• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 9.1.0.122
BBDThreat Class Reference

Interface for retrieving threat details for a specific BBDThreatType.

#import <GDThreat.h>

Inherits NSObject.

Inherited by BBDThreatApplicationSecurity, BBDThreatDeviceOffline, BBDThreatDeviceSecurity, BBDThreatDeviceSoftware, BBDThreatGeoZone, BBDThreatIdentity, BBDThreatNetworkSecurity, and BBDThreatUntrustedDeveloper.

Instance Methods

(BBDThreatType- getType
 Indicate the type of threat being checked. More...
 
(long) - getEvaluatedTime
 Determine when the check last completed. More...
 
(BBDThreatLevel- getRiskLevel
 Return the level of risk posed by the threat. More...
 
(BOOL) - getDetectionEnabled
 Check whether the threat is being evaluated. More...
 
(NSString *) - getInfo
 Get information on possible remediation actions to the threat. More...
 
(instancetype) - NS_UNAVAILABLE
 Only the subclasses of BBDThreat maybe instantiated. More...
 

Class Methods

(instancetype) + NS_UNAVAILABLE
 

Method Documentation

◆ getType

- (BBDThreatType) getType

Indicate the specific type of threat being checked.

Returns
BBDThreatType.

◆ getEvaluatedTime

- (long) getEvaluatedTime

Return the timestamp of when the threat was last evaluated. For example, when a malware scan was last completed.

Returns
long Unix timestamp in milliseconds of when the check last ran. The result is 0 if checks have not yet been performed, for example after the app hosting the runtime has just been installed.

◆ getRiskLevel

- (BBDThreatLevel) getRiskLevel

Return the level of risk posed by the threat.

Returns
BBDThreatLevel

◆ getDetectionEnabled

- (BOOL) getDetectionEnabled

Check whether the threat is being evaluated by the runtime. If detection is not enabled it may be because the feature hasn't been enabled by the enterprise administrator. Alternatively for some threats, like GeoZone, the end user is required to allow a specific a system permission, e.g. location, in order for the runtime to be able to perform checks. If a required permission is not allowed by the user the threat detection will be disabled.

Returns
YES if the detection is enabled.
NO if detection is disabled.

◆ getInfo

- (NSString*) getInfo

Return a string providing any possible remediation actions or further details about the threat.

Returns
NSString providing remediation information.

◆ NS_UNAVAILABLE [1/2]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/2]

+ (instancetype) NS_UNAVAILABLE

The documentation for this class was generated from the following file: