NetworkStatsManager.UsageCallback.OnThresholdReached Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.