EuiccManager.DeleteSubscription(Int32, PendingIntent) Method

Definition

Deletes the given subscription.

[Android.Runtime.Register("deleteSubscription", "(ILandroid/app/PendingIntent;)V", "GetDeleteSubscription_ILandroid_app_PendingIntent_Handler", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS")]
public virtual void DeleteSubscription (int subscriptionId, Android.App.PendingIntent? callbackIntent);
[<Android.Runtime.Register("deleteSubscription", "(ILandroid/app/PendingIntent;)V", "GetDeleteSubscription_ILandroid_app_PendingIntent_Handler", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS")>]
abstract member DeleteSubscription : int * Android.App.PendingIntent -> unit
override this.DeleteSubscription : int * Android.App.PendingIntent -> unit

Parameters

subscriptionId
Int32

the ID of the subscription to delete.

callbackIntent
PendingIntent

a PendingIntent to launch when the operation completes.

Attributes

Remarks

Deletes the given subscription.

If this subscription is currently active, the device will first switch away from it onto an "empty" subscription.

Requires that the calling app has carrier privileges according to the metadata of the profile to be deleted, or the android.Manifest.permission#WRITE_EMBEDDED_SUBSCRIPTIONS permission.

Java documentation for android.telephony.euicc.EuiccManager.deleteSubscription(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