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


使用回调的基类。 应该由希望通知的应用程序扩展。

Summary

Public constructors

NetworkStatsManager.UsageCallback()

Public methods

abstract void onThresholdReached(int networkType, String subscriberId)

当数据使用量达到给定阈值时调用。

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)

当数据使用量达到给定阈值时调用。

Parameters
networkType int
subscriberId String

Hooray!