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)>]
[<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.
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.