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

Public constructors

NetworkStatsManager.UsageCallback

added in API level 24
public NetworkStatsManager.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