Share via


TelephonyManager.NetworkCountryIso Property

Definition

Returns the ISO-3166-1 alpha-2 country code equivalent of the MCC (Mobile Country Code) of the current registered operator or the cell nearby, if available.

public virtual string? NetworkCountryIso { [Android.Runtime.Register("getNetworkCountryIso", "()Ljava/lang/String;", "GetGetNetworkCountryIsoHandler")] get; }
[<get: Android.Runtime.Register("getNetworkCountryIso", "()Ljava/lang/String;", "GetGetNetworkCountryIsoHandler")>]
member this.NetworkCountryIso : string

Property Value

the lowercase 2 character ISO-3166-1 alpha-2 country code, or empty string if not available.

Attributes

Remarks

Returns the ISO-3166-1 alpha-2 country code equivalent of the MCC (Mobile Country Code) of the current registered operator or the cell nearby, if available.

Note: Result may be unreliable on CDMA networks (use #getPhoneType() to determine if on a CDMA network).

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

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