Stay organized with collections
Save and categorize content based on your preferences.
TelephonyCallback.BarringInfoListener
public
static
interface
TelephonyCallback.BarringInfoListener
android.telephony.TelephonyCallback.BarringInfoListener
|
Interface for barring information listener.
Summary
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# TelephonyCallback.BarringInfoListener\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nTelephonyCallback.BarringInfoListener\n=====================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/telephony/TelephonyCallback.BarringInfoListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nTelephonyCallback.BarringInfoListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------|\n| android.telephony.TelephonyCallback.BarringInfoListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for barring information listener.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onBarringInfoChanged](/reference/android/telephony/TelephonyCallback.BarringInfoListener#onBarringInfoChanged(android.telephony.BarringInfo))`(`[BarringInfo](/reference/android/telephony/BarringInfo)` barringInfo) ` Report updated barring information for the current camped/registered cell. |\n\nPublic methods\n--------------\n\n### onBarringInfoChanged\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onBarringInfoChanged (BarringInfo barringInfo)\n```\n\nReport updated barring information for the current camped/registered cell.\n\nBarring info is provided for all services applicable to the current camped/registered\ncell, for the registered PLMN and current access class/access category.\n\nThe calling app should have carrier privileges\n(see [TelephonyManager.hasCarrierPrivileges](/reference/android/telephony/TelephonyManager#hasCarrierPrivileges())) if it does not have the\n[Manifest.permission.READ_PRECISE_PHONE_STATE](/reference/android/Manifest.permission#READ_PRECISE_PHONE_STATE) and\n[Manifest.permission.ACCESS_FINE_LOCATION](/reference/android/Manifest.permission#ACCESS_FINE_LOCATION).\n\nIf the calling app doesn't have [Manifest.permission.ACCESS_FINE_LOCATION](/reference/android/Manifest.permission#ACCESS_FINE_LOCATION),\nit will receive [BarringInfo](/reference/android/telephony/BarringInfo) including [CellIdentity](/reference/android/telephony/CellIdentity) without\nlocation-sensitive information included.\n\n\u003cbr /\u003e\n\n\nRequires [Manifest.permission.READ_PRECISE_PHONE_STATE](/reference/android/Manifest.permission#READ_PRECISE_PHONE_STATE) and [Manifest.permission.ACCESS_FINE_LOCATION](/reference/android/Manifest.permission#ACCESS_FINE_LOCATION)\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|------------------------------------------------------------------------------------------|\n| `barringInfo` | `BarringInfo`: for all services on the current cell. This value cannot be `null`. \u003cbr /\u003e |\n\n**See also:**\n\n- [BarringInfo](/reference/android/telephony/BarringInfo)"]]