public class LingerMonitor extends Object
Modifier and Type | Field and Description |
---|---|
static Intent |
CELLULAR_SETTINGS |
static int |
DEFAULT_NOTIFICATION_DAILY_LIMIT |
static long |
DEFAULT_NOTIFICATION_RATE_LIMIT_MILLIS |
static int |
NOTIFY_TYPE_NONE |
static int |
NOTIFY_TYPE_NOTIFICATION |
static int |
NOTIFY_TYPE_TOAST |
Constructor and Description |
---|
LingerMonitor(Context context,
NetworkNotificationManager notifier,
int dailyLimit,
long rateLimitMillis) |
Modifier and Type | Method and Description |
---|---|
protected PendingIntent |
createNotificationIntent() |
boolean |
isNotificationEnabled(NetworkAgentInfo fromNai,
NetworkAgentInfo toNai) |
void |
noteDisconnect(NetworkAgentInfo nai) |
void |
noteLingerDefaultNetwork(NetworkAgentInfo fromNai,
NetworkAgentInfo toNai) |
public static final int DEFAULT_NOTIFICATION_DAILY_LIMIT
public static final long DEFAULT_NOTIFICATION_RATE_LIMIT_MILLIS
public static final Intent CELLULAR_SETTINGS
public static final int NOTIFY_TYPE_NONE
public static final int NOTIFY_TYPE_NOTIFICATION
public static final int NOTIFY_TYPE_TOAST
public LingerMonitor(Context context, NetworkNotificationManager notifier, int dailyLimit, long rateLimitMillis)
public boolean isNotificationEnabled(NetworkAgentInfo fromNai, NetworkAgentInfo toNai)
protected PendingIntent createNotificationIntent()
public void noteLingerDefaultNetwork(NetworkAgentInfo fromNai, NetworkAgentInfo toNai)
public void noteDisconnect(NetworkAgentInfo nai)