Share via


SubscriptionManager.SetSubscriptionPlans Method

Definition

Overloads

SetSubscriptionPlans(Int32, IList<SubscriptionPlan>, Int64)

Set the description of the billing relationship plan between a carrier and a specific subscriber.

SetSubscriptionPlans(Int32, IList<SubscriptionPlan>)

Set the description of the billing relationship plan between a carrier and a specific subscriber.

SetSubscriptionPlans(Int32, IList<SubscriptionPlan>, Int64)

Set the description of the billing relationship plan between a carrier and a specific subscriber.

[Android.Runtime.Register("setSubscriptionPlans", "(ILjava/util/List;J)V", "GetSetSubscriptionPlans_ILjava_util_List_JHandler", ApiSince=33)]
public virtual void SetSubscriptionPlans (int subId, System.Collections.Generic.IList<Android.Telephony.SubscriptionPlan> plans, long expirationDurationMillis);
[<Android.Runtime.Register("setSubscriptionPlans", "(ILjava/util/List;J)V", "GetSetSubscriptionPlans_ILjava_util_List_JHandler", ApiSince=33)>]
abstract member SetSubscriptionPlans : int * System.Collections.Generic.IList<Android.Telephony.SubscriptionPlan> * int64 -> unit
override this.SetSubscriptionPlans : int * System.Collections.Generic.IList<Android.Telephony.SubscriptionPlan> * int64 -> unit

Parameters

subId
Int32

the subscriber this relationship applies to. An empty list may be sent to clear any existing plans.

plans
IList<SubscriptionPlan>

the list of plans. The first plan is always the primary and most important plan. Any additional plans are secondary and may not be displayed or used by decision making logic.

expirationDurationMillis
Int64

the duration after which the subscription plans will be automatically cleared, or 0 to leave the plans until explicitly cleared, or the next reboot, whichever happens first.

Attributes

Remarks

Set the description of the billing relationship plan between a carrier and a specific subscriber.

This method is only accessible to the following narrow set of apps: <ul> <li>The carrier app for this subscriberId, as determined by TelephonyManager#hasCarrierPrivileges(). <li>The carrier app explicitly delegated access through CarrierConfigManager#KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING. </ul>

Java documentation for android.telephony.SubscriptionManager.setSubscriptionPlans(int, java.util.List<android.telephony.SubscriptionPlan>, long).

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

SetSubscriptionPlans(Int32, IList<SubscriptionPlan>)

Set the description of the billing relationship plan between a carrier and a specific subscriber.

[Android.Runtime.Register("setSubscriptionPlans", "(ILjava/util/List;)V", "GetSetSubscriptionPlans_ILjava_util_List_Handler", ApiSince=28)]
public virtual void SetSubscriptionPlans (int subId, System.Collections.Generic.IList<Android.Telephony.SubscriptionPlan> plans);
[<Android.Runtime.Register("setSubscriptionPlans", "(ILjava/util/List;)V", "GetSetSubscriptionPlans_ILjava_util_List_Handler", ApiSince=28)>]
abstract member SetSubscriptionPlans : int * System.Collections.Generic.IList<Android.Telephony.SubscriptionPlan> -> unit
override this.SetSubscriptionPlans : int * System.Collections.Generic.IList<Android.Telephony.SubscriptionPlan> -> unit

Parameters

subId
Int32

the subscriber this relationship applies to. An empty list may be sent to clear any existing plans.

plans
IList<SubscriptionPlan>

the list of plans. The first plan is always the primary and most important plan. Any additional plans are secondary and may not be displayed or used by decision making logic.

Attributes

Remarks

Set the description of the billing relationship plan between a carrier and a specific subscriber.

This method is only accessible to the following narrow set of apps: <ul> <li>The carrier app for this subscriberId, as determined by TelephonyManager#hasCarrierPrivileges(). <li>The carrier app explicitly delegated access through CarrierConfigManager#KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING. </ul>

This member is deprecated. use #setSubscriptionPlans(int, List, long) instead.

Java documentation for android.telephony.SubscriptionManager.setSubscriptionPlans(int, java.util.List<android.telephony.SubscriptionPlan>).

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