Langue

SubscriptionPlan.Builder.SetDataUsageResetTime(ZonedDateTime) Method

Definition

Sets the time when the data usage allowance will reset.

[Android.Runtime.Register("setDataUsageResetTime", "(Ljava/time/ZonedDateTime;)Landroid/telephony/SubscriptionPlan$Builder;", "GetSetDataUsageResetTime_Ljava_time_ZonedDateTime_Handler", ApiSince=37)]
public virtual Android.Telephony.SubscriptionPlan.Builder SetDataUsageResetTime(Java.Time.ZonedDateTime? dataUsageResetTime);
[<Android.Runtime.Register("setDataUsageResetTime", "(Ljava/time/ZonedDateTime;)Landroid/telephony/SubscriptionPlan$Builder;", "GetSetDataUsageResetTime_Ljava_time_ZonedDateTime_Handler", ApiSince=37)>]
abstract member SetDataUsageResetTime : Java.Time.ZonedDateTime -> Android.Telephony.SubscriptionPlan.Builder
override this.SetDataUsageResetTime : Java.Time.ZonedDateTime -> Android.Telephony.SubscriptionPlan.Builder

Parameters

dataUsageResetTime
ZonedDateTime

The data usage reset time, or null if this information is not available or not applicable to the plan.

Returns

Attributes

Remarks

Sets the time when the data usage allowance will reset.

This is particularly relevant for plans with a daily data allowance, as it specifies the exact moment (e.g., midnight in a specific timezone) when the usage for the next 24-hour will reset. For other types of plans, this may not be applicable.

The value provided for setDataUsage(long, long) should reflect the data consumed since the last reset time.

Android reference for android.telephony.SubscriptionPlan.Builder.setDataUsageResetTime.

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