Most visited

Recently visited

Added in API level 24

NetworkStatsManager.UsageCallback

public static abstract class NetworkStatsManager.UsageCallback
extends Object

java.lang.Object
   ↳ android.app.usage.NetworkStatsManager.UsageCallback


Base class for usage callbacks. Should be extended by applications wanting notifications.

Summary

Public constructors

NetworkStatsManager.UsageCallback()

Public methods

abstract void onThresholdReached(int networkType, String subscriberId)

Called when data usage has reached the given threshold.

Inherited methods

From class java.lang.Object

Public constructors

NetworkStatsManager.UsageCallback

Added in API level 24
NetworkStatsManager.UsageCallback ()

Public methods

onThresholdReached

Added in API level 24
void onThresholdReached (int networkType, 
                String subscriberId)

Called when data usage has reached the given threshold.

Parameters
networkType int
subscriberId String

Hooray!