Share via


TelephonyManager.SwitchMultiSimConfig(Int32) Method

Definition

Switch configs to enable multi-sim or switch back to single-sim

[Android.Runtime.Register("switchMultiSimConfig", "(I)V", "GetSwitchMultiSimConfig_IHandler", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")]
public virtual void SwitchMultiSimConfig (int numOfSims);
[<Android.Runtime.Register("switchMultiSimConfig", "(I)V", "GetSwitchMultiSimConfig_IHandler", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")>]
abstract member SwitchMultiSimConfig : int -> unit
override this.SwitchMultiSimConfig : int -> unit

Parameters

numOfSims
Int32

number of live SIMs we want to switch to

Attributes

Remarks

Switch configs to enable multi-sim or switch back to single-sim

Requires Permission: android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE or that the calling app has carrier privileges (see #hasCarrierPrivileges).

Note: with only carrier privileges, it is not allowed to switch from multi-sim to single-sim

Java documentation for android.telephony.TelephonyManager.switchMultiSimConfig(int).

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