SubscriptionManager.SetTs43PhoneNumber(Int32, String) 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.
Sets the phone number for the given subId for source
#PHONE_NUMBER_SOURCE_TS43 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 #DEFAULT_SUBSCRIPTION_ID
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 subId for source TS43. Sets 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 PhoneNumberUtils formatNumber* methods. Requires Manifest.permission.MODIFY_PHONE_STATE
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.