SubscriptionManager.AddSubscriptionsIntoGroup Method

Definition

Add a list of subscriptions into a group.

[Android.Runtime.Register("addSubscriptionsIntoGroup", "(Ljava/util/List;Landroid/os/ParcelUuid;)V", "GetAddSubscriptionsIntoGroup_Ljava_util_List_Landroid_os_ParcelUuid_Handler", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")]
public virtual void AddSubscriptionsIntoGroup (System.Collections.Generic.IList<Java.Lang.Integer> subIdList, Android.OS.ParcelUuid groupUuid);
[<Android.Runtime.Register("addSubscriptionsIntoGroup", "(Ljava/util/List;Landroid/os/ParcelUuid;)V", "GetAddSubscriptionsIntoGroup_Ljava_util_List_Landroid_os_ParcelUuid_Handler", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")>]
abstract member AddSubscriptionsIntoGroup : System.Collections.Generic.IList<Java.Lang.Integer> * Android.OS.ParcelUuid -> unit
override this.AddSubscriptionsIntoGroup : System.Collections.Generic.IList<Java.Lang.Integer> * Android.OS.ParcelUuid -> unit

Parameters

subIdList
IList<Integer>

list of subId that need adding into the group

groupUuid
ParcelUuid

the groupUuid the subscriptions are being added to.

Attributes

Remarks

Add a list of subscriptions into a group. See #createSubscriptionGroup(List) for more details.

Caller will either have android.Manifest.permission#MODIFY_PHONE_STATE permission or had carrier privilege permission on the subscriptions: TelephonyManager#hasCarrierPrivileges() or #canManageSubscription(SubscriptionInfo)

Java documentation for android.telephony.SubscriptionManager.addSubscriptionsIntoGroup(java.util.List<java.lang.Integer>, 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