EuiccManager.DeleteSubscription(Int32, PendingIntent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)]
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
[<Android.Runtime.Register("deleteSubscription", "(ILandroid/app/PendingIntent;)V", "GetDeleteSubscription_ILandroid_app_PendingIntent_Handler", ApiSince=28)>]
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. Starting from Android android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM
, if the caller is a device owner, profile owner, or holds the android.Manifest.permission#MANAGE_DEVICE_POLICY_MANAGED_SUBSCRIPTIONS
permission, then the caller can delete a subscription that was downloaded by that caller. If such a caller tries to delete any other subscription then the operation will fail with #EMBEDDED_SUBSCRIPTION_RESULT_ERROR
.
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.