Partager via


SubscriptionManager.AllSubscriptionInfoList Property

Definition

Get all subscription info records from SIMs that are inserted now or previously inserted.

public virtual System.Collections.Generic.IList<Android.Telephony.SubscriptionInfo> AllSubscriptionInfoList { [Android.Runtime.Register("getAllSubscriptionInfoList", "()Ljava/util/List;", "GetGetAllSubscriptionInfoListHandler", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getAllSubscriptionInfoList", "()Ljava/util/List;", "GetGetAllSubscriptionInfoListHandler", ApiSince=34)>]
member this.AllSubscriptionInfoList : System.Collections.Generic.IList<Android.Telephony.SubscriptionInfo>

Property Value

List of all SubscriptionInfo records from SIMs that are inserted or previously inserted. Sorted by SubscriptionInfo#getSimSlotIndex(), then SubscriptionInfo#getSubscriptionId().

Attributes

Remarks

Get all subscription info records from SIMs that are inserted now or previously inserted.

If the caller does not have Manifest.permission#READ_PHONE_NUMBERS permission, SubscriptionInfo#getNumber() will return empty string. If the caller does not have Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER, SubscriptionInfo#getIccId() will return an empty string, and SubscriptionInfo#getGroupUuid() will return null.

The carrier app will only get the list of subscriptions that it has carrier privilege on, but will have non-stripped SubscriptionInfo in the list.

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

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