Share via


TelephonyManager.SetPreferredNetworkTypeToGlobal Method

Definition

Set the preferred network type to global mode which includes NR, LTE, CDMA, EvDo and GSM/WCDMA.

[Android.Runtime.Register("setPreferredNetworkTypeToGlobal", "()Z", "GetSetPreferredNetworkTypeToGlobalHandler", ApiSince=22)]
public virtual bool SetPreferredNetworkTypeToGlobal ();
[<Android.Runtime.Register("setPreferredNetworkTypeToGlobal", "()Z", "GetSetPreferredNetworkTypeToGlobalHandler", ApiSince=22)>]
abstract member SetPreferredNetworkTypeToGlobal : unit -> bool
override this.SetPreferredNetworkTypeToGlobal : unit -> bool

Returns

true on success; false on any failure.

Attributes

Remarks

Set the preferred network type to global mode which includes NR, LTE, CDMA, EvDo and GSM/WCDMA.

Requires that the calling app has carrier privileges (see #hasCarrierPrivileges).

Java documentation for android.telephony.TelephonyManager.setPreferredNetworkTypeToGlobal().

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