Share via


SubscriptionManager.GetSubscriptionPlans(Int32) Method

Definition

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

[Android.Runtime.Register("getSubscriptionPlans", "(I)Ljava/util/List;", "GetGetSubscriptionPlans_IHandler", ApiSince=28)]
public virtual System.Collections.Generic.IList<Android.Telephony.SubscriptionPlan> GetSubscriptionPlans (int subId);
[<Android.Runtime.Register("getSubscriptionPlans", "(I)Ljava/util/List;", "GetGetSubscriptionPlans_IHandler", ApiSince=28)>]
abstract member GetSubscriptionPlans : int -> System.Collections.Generic.IList<Android.Telephony.SubscriptionPlan>
override this.GetSubscriptionPlans : int -> System.Collections.Generic.IList<Android.Telephony.SubscriptionPlan>

Parameters

subId
Int32

the subscriber this relationship applies to

Returns

Attributes

Remarks

Get 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.getSubscriptionPlans(int).

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