• BlackBerry Spark AppSecure
  • Security library for Android applications
  • 0.7.915.0
DeviceOfflineRules Class Reference

Configure rules for device offline checks. More...

Description

Use this class to configure the amount of time allowed to pass without connectivity before the threat level is raised to medium and high.

To apply the rules create an instance of DeviceOfflineRules with the desired configuration and provide it to ManageRules.setDeviceOfflineRules.

Public Member Functions

 DeviceOfflineRules (int minutesToMediumThreatLevel, int minutesToHighThreatLevel)
 Constructor to configure rule. More...
 
int getMinutesToMediumThreatLevel ()
 
int getMinutesToHighThreatLevel ()
 
DeviceOfflineRules setMinutesToMediumThreatLevel (int minutesToMediumThreatLevel)
 
DeviceOfflineRules setMinutesToHighThreatLevel (int minutesToHighThreatLevel)
 

Constructor & Destructor Documentation

◆ DeviceOfflineRules()

DeviceOfflineRules ( int  minutesToMediumThreatLevel,
int  minutesToHighThreatLevel 
)

Constructor which takes minutesToMediumThreatLevel and minutesToHighThreatLevel.

Parameters
minutesToMediumThreatLevel- specifies time (in minutes) before the threat level is raised to medium.
minutesToHighThreatLevel- specifies time (in minutes) before the threat level is raised to high.

Member Function Documentation

◆ getMinutesToMediumThreatLevel()

int getMinutesToMediumThreatLevel ( )
Returns
time (in minutes) before the threat level is raised to medium.

◆ getMinutesToHighThreatLevel()

int getMinutesToHighThreatLevel ( )
Returns
time (in minutes) before the threat level is raised to high.

◆ setMinutesToMediumThreatLevel()

DeviceOfflineRules setMinutesToMediumThreatLevel ( int  minutesToMediumThreatLevel)
Parameters
minutesToMediumThreatLeveltime (in minutes) before the threat level is raised to medium.

◆ setMinutesToHighThreatLevel()

DeviceOfflineRules setMinutesToHighThreatLevel ( int  minutesToHighThreatLevel)
Parameters
minutesToHighThreatLeveltime (in minutes) before the threat level is raised to high.