Udostępnij za pośrednictwem


SubscriptionManager.CompleteActiveSubscriptionInfoList Property

Definition

Get both hidden and visible SubscriptionInfo(s) of the currently active SIM(s).

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

Property Value

Sorted list of the currently available SubscriptionInfo records on the device. This is similar to #getActiveSubscriptionInfoList except that it will return both active and hidden SubscriptionInfos.

Attributes

Remarks

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

Hidden subscriptions refer to those are not meant visible to the users. For example, an opportunistic subscription that is grouped with other subscriptions should remain invisible to users as they are only functionally supplementary to primary ones.

Requires Permission: android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE or that the calling app has carrier privileges (see TelephonyManager#hasCarrierPrivileges). In the latter case, only records accessible to the calling app are returned.

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

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