Partager via


SubscriptionManager.SwitchToSubscription(Int32, PendingIntent) Method

Definition

Switch to a certain subscription

[Android.Runtime.Register("switchToSubscription", "(ILandroid/app/PendingIntent;)V", "GetSwitchToSubscription_ILandroid_app_PendingIntent_Handler", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS")]
public virtual void SwitchToSubscription (int subId, Android.App.PendingIntent callbackIntent);
[<Android.Runtime.Register("switchToSubscription", "(ILandroid/app/PendingIntent;)V", "GetSwitchToSubscription_ILandroid_app_PendingIntent_Handler", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS")>]
abstract member SwitchToSubscription : int * Android.App.PendingIntent -> unit
override this.SwitchToSubscription : int * Android.App.PendingIntent -> unit

Parameters

subId
Int32

sub id

callbackIntent
PendingIntent

pending intent that will be sent after operation is done.

Attributes

Remarks

Switch to a certain subscription

This member is deprecated. this API is a duplicate of EuiccManager#switchToSubscription(int, PendingIntent) and does not support Multiple Enabled Profile(MEP). Apps should use EuiccManager#switchToSubscription(int, PendingIntent) or EuiccManager#switchToSubscription(int, int, PendingIntent) instead.

Java documentation for android.telephony.SubscriptionManager.switchToSubscription(int, android.app.PendingIntent).

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