SubscriptionManager.ActiveSubscriptionInfoList Property

Definition

Get the SubscriptionInfo(s) of the currently active SIM(s).

public virtual System.Collections.Generic.IList<Android.Telephony.SubscriptionInfo>? ActiveSubscriptionInfoList { [Android.Runtime.Register("getActiveSubscriptionInfoList", "()Ljava/util/List;", "GetGetActiveSubscriptionInfoListHandler", ApiSince=22)] [Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")] get; }
[<get: Android.Runtime.Register("getActiveSubscriptionInfoList", "()Ljava/util/List;", "GetGetActiveSubscriptionInfoListHandler", ApiSince=22)>]
[<get: Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
member this.ActiveSubscriptionInfoList : System.Collections.Generic.IList<Android.Telephony.SubscriptionInfo>

Property Value

Sorted list of the currently SubscriptionInfo records available on the device. <ul> <li> If null is returned the current state is unknown but if a OnSubscriptionsChangedListener has been registered OnSubscriptionsChangedListener#onSubscriptionsChanged will be invoked in the future. </li> <li> If the list is empty then there are no SubscriptionInfo records currently available. </li> <li> if the list is non-empty the list is sorted by SubscriptionInfo#getSimSlotIndex then by SubscriptionInfo#getSubscriptionId. </li> </ul>

Attributes

Remarks

Get the SubscriptionInfo(s) of the currently active SIM(s). The records will be sorted by SubscriptionInfo#getSimSlotIndex then by SubscriptionInfo#getSubscriptionId.

Requires Permission: android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE or that the calling app has carrier privileges (see TelephonyManager#hasCarrierPrivileges).

Java documentation for android.telephony.SubscriptionManager.getActiveSubscriptionInfoList().

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