Language

NetworkStatsManager.UsageCallback.OnThresholdReached Method

Definition

Called when data usage has reached the given threshold.

[Android.Runtime.Register("onThresholdReached", "(ILjava/lang/String;)V", "GetOnThresholdReached_ILjava_lang_String_Handler", ApiSince=24)]
public abstract void OnThresholdReached(Android.Net.ConnectivityType networkType, string? subscriberId);
[<Android.Runtime.Register("onThresholdReached", "(ILjava/lang/String;)V", "GetOnThresholdReached_ILjava_lang_String_Handler", ApiSince=24)>]
abstract member OnThresholdReached : Android.Net.ConnectivityType * string -> unit

Parameters

networkType
ConnectivityType

The mobile or Wi-Fi network type selected by the registered usage request.

subscriberId
String

A subscriber identifier from the registered network filter, or null if the filter has no subscriber identifier.

Attributes

Remarks

Called when data usage has reached the given threshold.

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

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