Sprache

SubscriptionPlan.Builder.CreateNonrecurring Method

Definition

Overloads

Name Description
CreateNonrecurring(Period)

Start defining a template for a non-recurring SubscriptionPlan with a specific duration.

CreateNonrecurring(ZonedDateTime, ZonedDateTime)

Start defining a SubscriptionPlan that covers a very specific window of time, and never automatically recurs.

CreateNonrecurring(Period)

Start defining a template for a non-recurring SubscriptionPlan with a specific duration.

[Android.Runtime.Register("createNonrecurring", "(Ljava/time/Period;)Landroid/telephony/SubscriptionPlan$Builder;", "", ApiSince=37)]
public static Android.Telephony.SubscriptionPlan.Builder CreateNonrecurring(Java.Time.Period duration);
[<Android.Runtime.Register("createNonrecurring", "(Ljava/time/Period;)Landroid/telephony/SubscriptionPlan$Builder;", "", ApiSince=37)>]
static member CreateNonrecurring : Java.Time.Period -> Android.Telephony.SubscriptionPlan.Builder

Parameters

duration
Period

The total duration of the plan once activated (e.g., Period.ofDays(15)). This value cannot be null.

Returns

A Builder instance for a non-recurring plan template. This value cannot be null.

Attributes

Remarks

Start defining a template for a non-recurring SubscriptionPlan with a specific duration.

This is useful for describing fixed-duration plans that users can enroll in, such as a travel pass or a one-time data package. The actual start and end dates are determined upon enrollment.

Plans created with this builder should be marked with setSubscriptionStatus(int) and a status of SubscriptionPlan.SUBSCRIPTION_STATUS_INACTIVE.

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

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

CreateNonrecurring(ZonedDateTime, ZonedDateTime)

Start defining a SubscriptionPlan that covers a very specific window of time, and never automatically recurs.

[Android.Runtime.Register("createNonrecurring", "(Ljava/time/ZonedDateTime;Ljava/time/ZonedDateTime;)Landroid/telephony/SubscriptionPlan$Builder;", "", ApiSince=28)]
public static Android.Telephony.SubscriptionPlan.Builder? CreateNonrecurring(Java.Time.ZonedDateTime? start, Java.Time.ZonedDateTime? end);
[<Android.Runtime.Register("createNonrecurring", "(Ljava/time/ZonedDateTime;Ljava/time/ZonedDateTime;)Landroid/telephony/SubscriptionPlan$Builder;", "", ApiSince=28)>]
static member CreateNonrecurring : Java.Time.ZonedDateTime * Java.Time.ZonedDateTime -> Android.Telephony.SubscriptionPlan.Builder

Parameters

start
ZonedDateTime

The exact time at which the plan starts.

end
ZonedDateTime

The exact time at which the plan ends.

Returns

Attributes

Remarks

Start defining a SubscriptionPlan that covers a very specific window of time, and never automatically recurs.

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

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