SubscriptionPlan.Builder.SetDataUsage(Int64, Int64) Method

Definition

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. Value is a non-negative number of bytes.

dataUsageTime
Int64

the time at which this snapshot was valid. Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.

Returns

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.

Applies to