SubscriptionPlan.Builder.SetDataUsage(Int64, Int64) 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.
Set a snapshot of currently known mobile data usage.
[Android.Runtime.Register("setDataUsage", "(JJ)Landroid/telephony/SubscriptionPlan$Builder;", "GetSetDataUsage_JJHandler", ApiSince=28)]
public virtual Android.Telephony.SubscriptionPlan.Builder? SetDataUsage(long dataUsageBytes, long dataUsageTime);
[<Android.Runtime.Register("setDataUsage", "(JJ)Landroid/telephony/SubscriptionPlan$Builder;", "GetSetDataUsage_JJHandler", ApiSince=28)>]
abstract member SetDataUsage : int64 * int64 -> Android.Telephony.SubscriptionPlan.Builder
override this.SetDataUsage : int64 * int64 -> Android.Telephony.SubscriptionPlan.Builder
Parameters
- dataUsageBytes
- Int64
The currently known mobile data usage in bytes. Android 9 through Android 16 reject negative values. Starting with Android 17, the framework also accepts BytesUnknown.
- dataUsageTime
- Int64
The time at which this snapshot was valid, in milliseconds since 1970-01-01T00:00:00Z. Android 9 through Android 16 reject negative values. Starting with Android 17, the framework also accepts TimeUnknown.
Returns
This builder with the usage amount and measurement time set.
- Attributes
Remarks
Set a snapshot of currently known mobile data usage.
Android reference for android.telephony.SubscriptionPlan.Builder.setDataUsage.
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.