Share via


SubscriptionManager.OpportunisticSubscriptions Property

Definition

Return opportunistic subscriptions that can be visible to the caller.

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

Property Value

the list of opportunistic subscription info. If none exists, an empty list.

Attributes

Remarks

Return opportunistic subscriptions that can be visible to the caller. Opportunistic subscriptions are for opportunistic networks, which are cellular networks with limited capabilities and coverage, for example, CBRS.

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.getOpportunisticSubscriptions().

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