Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# TelephonyCallback.BarringInfoListener

*** ** * ** ***

` public static interface TelephonyCallback.BarringInfoListener `   
` `

|---|
| android.telephony.TelephonyCallback.BarringInfoListener |

<br />

*** ** * ** ***

Interface for barring information listener.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/telephony/TelephonyCallback.BarringInfoListener#onBarringInfoChanged(android.telephony.BarringInfo)(https://developer.android.com/reference/android/telephony/BarringInfo barringInfo) ` Report updated barring information for the current camped/registered cell. |

## Public methods

### onBarringInfoChanged

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onBarringInfoChanged (BarringInfo barringInfo)
```

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 `https://developer.android.com/reference/android/telephony/TelephonyManager#hasCarrierPrivileges()`) if it does not have the `https://developer.android.com/reference/android/Manifest.permission#READ_PRECISE_PHONE_STATE` and `https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION`. If the calling app doesn't have `https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION`, it will receive `https://developer.android.com/reference/android/telephony/BarringInfo` including `https://developer.android.com/reference/android/telephony/CellIdentity` without location-sensitive information included.   

Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PRECISE_PHONE_STATE` and `https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION`

<br />

| Parameters ||
|---|---|
| `barringInfo` | `BarringInfo`: for all services on the current cell. This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/telephony/BarringInfo`