SubscriptionManager.GetSubscriptionsInGroup(ParcelUuid) Method

Definition

Get subscriptionInfo list of subscriptions that are in the same group of given subId.

[Android.Runtime.Register("getSubscriptionsInGroup", "(Landroid/os/ParcelUuid;)Ljava/util/List;", "GetGetSubscriptionsInGroup_Landroid_os_ParcelUuid_Handler", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")]
public virtual System.Collections.Generic.IList<Android.Telephony.SubscriptionInfo> GetSubscriptionsInGroup (Android.OS.ParcelUuid groupUuid);
[<Android.Runtime.Register("getSubscriptionsInGroup", "(Landroid/os/ParcelUuid;)Ljava/util/List;", "GetGetSubscriptionsInGroup_Landroid_os_ParcelUuid_Handler", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
abstract member GetSubscriptionsInGroup : Android.OS.ParcelUuid -> System.Collections.Generic.IList<Android.Telephony.SubscriptionInfo>
override this.GetSubscriptionsInGroup : Android.OS.ParcelUuid -> System.Collections.Generic.IList<Android.Telephony.SubscriptionInfo>

Parameters

groupUuid
ParcelUuid

of which list of subInfo will be returned.

Returns

list of subscriptionInfo that belong to the same group, including the given subscription itself. It will return an empty list if no subscription belongs to the group.

Attributes

Remarks

Get subscriptionInfo list of subscriptions that are in the same group of given subId.

Caller must have android.Manifest.permission#READ_PHONE_STATE or carrier privilege permission on the subscription. TelephonyManager#hasCarrierPrivileges()

Starting with API level 33, the caller also needs permission to access device identifiers to get the list of subscriptions associated with a group UUID. This method can be invoked if one of the following requirements is met: <ul> <li>If the app has carrier privilege permission. TelephonyManager#hasCarrierPrivileges()<li>If the app has android.Manifest.permission#READ_PHONE_STATE permission and access to device identifiers. </ul>

Java documentation for android.telephony.SubscriptionManager.getSubscriptionsInGroup(android.os.ParcelUuid).

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