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

UsageCallback()

Public methods

abstract void onThresholdReached(int networkType, String subscriberId)

Called when data usage has reached the given threshold.

Inherited methods

Public constructors

UsageCallback

Added in API level 24
public UsageCallback ()

Public methods

onThresholdReached

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

Called when data usage has reached the given threshold.

Parameters
networkType int

subscriberId String: This value may be null.