NetworkStatsManager.RegisterUsageCallback Method

Definition

Overloads

RegisterUsageCallback(ConnectivityType, String, Int64, NetworkStatsManager+UsageCallback)

Registers to receive notifications about data usage on specified networks.

RegisterUsageCallback(ConnectivityType, String, Int64, NetworkStatsManager+UsageCallback, Handler)

Registers to receive notifications about data usage on specified networks.

RegisterUsageCallback(ConnectivityType, String, Int64, NetworkStatsManager+UsageCallback)

Registers to receive notifications about data usage on specified networks.

[Android.Runtime.Register("registerUsageCallback", "(ILjava/lang/String;JLandroid/app/usage/NetworkStatsManager$UsageCallback;)V", "GetRegisterUsageCallback_ILjava_lang_String_JLandroid_app_usage_NetworkStatsManager_UsageCallback_Handler", ApiSince=24)]
public virtual void RegisterUsageCallback (Android.Net.ConnectivityType networkType, string? subscriberId, long thresholdBytes, Android.App.Usage.NetworkStatsManager.UsageCallback callback);
[<Android.Runtime.Register("registerUsageCallback", "(ILjava/lang/String;JLandroid/app/usage/NetworkStatsManager$UsageCallback;)V", "GetRegisterUsageCallback_ILjava_lang_String_JLandroid_app_usage_NetworkStatsManager_UsageCallback_Handler", ApiSince=24)>]
abstract member RegisterUsageCallback : Android.Net.ConnectivityType * string * int64 * Android.App.Usage.NetworkStatsManager.UsageCallback -> unit
override this.RegisterUsageCallback : Android.Net.ConnectivityType * string * int64 * Android.App.Usage.NetworkStatsManager.UsageCallback -> unit

Parameters

networkType
ConnectivityType
subscriberId
String
thresholdBytes
Int64
Attributes

Remarks

Java documentation for android.app.usage.NetworkStatsManager.registerUsageCallback(int, java.lang.String, long, android.app.usage.UsageCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

RegisterUsageCallback(ConnectivityType, String, Int64, NetworkStatsManager+UsageCallback, Handler)

Registers to receive notifications about data usage on specified networks.

[Android.Runtime.Register("registerUsageCallback", "(ILjava/lang/String;JLandroid/app/usage/NetworkStatsManager$UsageCallback;Landroid/os/Handler;)V", "GetRegisterUsageCallback_ILjava_lang_String_JLandroid_app_usage_NetworkStatsManager_UsageCallback_Landroid_os_Handler_Handler", ApiSince=24)]
public virtual void RegisterUsageCallback (Android.Net.ConnectivityType networkType, string? subscriberId, long thresholdBytes, Android.App.Usage.NetworkStatsManager.UsageCallback callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("registerUsageCallback", "(ILjava/lang/String;JLandroid/app/usage/NetworkStatsManager$UsageCallback;Landroid/os/Handler;)V", "GetRegisterUsageCallback_ILjava_lang_String_JLandroid_app_usage_NetworkStatsManager_UsageCallback_Landroid_os_Handler_Handler", ApiSince=24)>]
abstract member RegisterUsageCallback : Android.Net.ConnectivityType * string * int64 * Android.App.Usage.NetworkStatsManager.UsageCallback * Android.OS.Handler -> unit
override this.RegisterUsageCallback : Android.Net.ConnectivityType * string * int64 * Android.App.Usage.NetworkStatsManager.UsageCallback * Android.OS.Handler -> unit

Parameters

networkType
ConnectivityType
subscriberId
String
thresholdBytes
Int64
handler
Handler
Attributes

Remarks

Java documentation for android.app.usage.NetworkStatsManager.registerUsageCallback(int, java.lang.String, long, android.app.usage.UsageCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to