TelephonyManager.SetPreferredNetworkTypeToGlobal 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.
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.