共用方式為


TelephonyCallback.IBarringInfoListener.OnBarringInfoChanged Method

Definition

Report updated barring information for the current camped/registered cell.

[Android.Runtime.Register("onBarringInfoChanged", "(Landroid/telephony/BarringInfo;)V", "GetOnBarringInfoChanged_Landroid_telephony_BarringInfo_Handler:Android.Telephony.TelephonyCallback/IBarringInfoListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public void OnBarringInfoChanged (Android.Telephony.BarringInfo barringInfo);
[<Android.Runtime.Register("onBarringInfoChanged", "(Landroid/telephony/BarringInfo;)V", "GetOnBarringInfoChanged_Landroid_telephony_BarringInfo_Handler:Android.Telephony.TelephonyCallback/IBarringInfoListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnBarringInfoChanged : Android.Telephony.BarringInfo -> unit

Parameters

barringInfo
BarringInfo

for all services on the current cell.

Attributes

Remarks

Report updated barring information for the current camped/registered cell.

Barring info is provided for all services applicable to the current camped/registered cell, for the registered PLMN and current access class/access category.

The calling app should have carrier privileges (see TelephonyManager#hasCarrierPrivileges) if it does not have the android.Manifest.permission#READ_PRECISE_PHONE_STATE and android.Manifest.permission#ACCESS_FINE_LOCATION.

If the calling app doesn't have android.Manifest.permission#ACCESS_FINE_LOCATION, it will receive BarringInfo including CellIdentity without location-sensitive information included.

Java documentation for android.telephony.TelephonyCallback.BarringInfoListener.onBarringInfoChanged(android.telephony.BarringInfo).

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