NetworkStatsManager.RegisterUsageCallback NetworkStatsManager.RegisterUsageCallback Method

Definition

Overloads

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

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

[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);
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

subscriberId
String String
thresholdBytes
Int64 Int64

Remarks

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.

RegisterUsageCallback(ConnectivityType, String, Int64, NetworkStatsManager+UsageCallback, Handler) RegisterUsageCallback(ConnectivityType, String, Int64, NetworkStatsManager+UsageCallback, 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)]
public virtual void RegisterUsageCallback (Android.Net.ConnectivityType networkType, string subscriberId, long thresholdBytes, Android.App.Usage.NetworkStatsManager.UsageCallback callback, Android.OS.Handler handler);
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

subscriberId
String String
thresholdBytes
Int64 Int64
handler
Handler Handler

Remarks

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