Udostępnij za pośrednictwem


EuiccManager.UpdateSubscriptionNickname(Int32, String, PendingIntent) Method

Definition

Update the nickname for the given subscription.

[Android.Runtime.Register("updateSubscriptionNickname", "(ILjava/lang/String;Landroid/app/PendingIntent;)V", "GetUpdateSubscriptionNickname_ILjava_lang_String_Landroid_app_PendingIntent_Handler", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS")]
public virtual void UpdateSubscriptionNickname (int subscriptionId, string? nickname, Android.App.PendingIntent callbackIntent);
[<Android.Runtime.Register("updateSubscriptionNickname", "(ILjava/lang/String;Landroid/app/PendingIntent;)V", "GetUpdateSubscriptionNickname_ILjava_lang_String_Landroid_app_PendingIntent_Handler", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS")>]
abstract member UpdateSubscriptionNickname : int * string * Android.App.PendingIntent -> unit
override this.UpdateSubscriptionNickname : int * string * Android.App.PendingIntent -> unit

Parameters

subscriptionId
Int32

the ID of the subscription to update.

nickname
String

the new nickname to apply.

callbackIntent
PendingIntent

a PendingIntent to launch when the operation completes.

Attributes

Remarks

Update the nickname for the given subscription.

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

Java documentation for android.telephony.euicc.EuiccManager.updateSubscriptionNickname(int, java.lang.String, 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