Language

SubscriptionManager.SetTs43PhoneNumber(Int32, String) Method

Definition

Sets the phone number for the given subscriptionId for source Ts43.

[Android.Runtime.Register("setTs43PhoneNumber", "(ILjava/lang/String;)V", "GetSetTs43PhoneNumber_ILjava_lang_String_Handler", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")]
public virtual void SetTs43PhoneNumber(int subscriptionId, string number);
[<Android.Runtime.Register("setTs43PhoneNumber", "(ILjava/lang/String;)V", "GetSetTs43PhoneNumber_ILjava_lang_String_Handler", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")>]
abstract member SetTs43PhoneNumber : int * string -> unit
override this.SetTs43PhoneNumber : int * string -> unit

Parameters

subscriptionId
Int32

the subscription ID, or int.MaxValue for the default one.

number
String

the phone number, or an empty string to remove the previously set number.

Attributes

Remarks

Sets the phone number for the given subscriptionId for source TS43. Pass an empty string to remove the previously set phone number.

It's recommended that the phone number is formatted to well-known formats, for example, by formatting methods on PhoneNumberUtils. Requires ModifyPhoneState.

Android reference for android.telephony.SubscriptionManager.setTs43PhoneNumber.

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