Share via


TelephonyManager.GetForbiddenPlmns Method

Definition

Returns an array of Forbidden PLMNs from the USIM App Returns null if the query fails.

[Android.Runtime.Register("getForbiddenPlmns", "()[Ljava/lang/String;", "GetGetForbiddenPlmnsHandler", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")]
public virtual string[]? GetForbiddenPlmns ();
[<Android.Runtime.Register("getForbiddenPlmns", "()[Ljava/lang/String;", "GetGetForbiddenPlmnsHandler", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
abstract member GetForbiddenPlmns : unit -> string[]
override this.GetForbiddenPlmns : unit -> string[]

Returns

String[]

an array of forbidden PLMNs or null if not available

Attributes

Remarks

Returns an array of Forbidden PLMNs from the USIM App Returns null if the query fails.

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

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

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