Stay organized with collections
Save and categorize content based on your preferences.
TelephonyCallback.CallForwardingIndicatorListener
public
static
interface
TelephonyCallback.CallForwardingIndicatorListener
android.telephony.TelephonyCallback.CallForwardingIndicatorListener
|
Interface for call-forwarding indicator listener.
Summary
Public methods |
abstract
void
|
onCallForwardingIndicatorChanged(boolean cfi)
Callback invoked when the call-forwarding indicator changes on the registered
subscription.
|
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# TelephonyCallback.CallForwardingIndicatorListener\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nTelephonyCallback.CallForwardingIndicatorListener\n=================================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/telephony/TelephonyCallback.CallForwardingIndicatorListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nTelephonyCallback.CallForwardingIndicatorListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------------------|\n| android.telephony.TelephonyCallback.CallForwardingIndicatorListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for call-forwarding indicator listener.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onCallForwardingIndicatorChanged](/reference/android/telephony/TelephonyCallback.CallForwardingIndicatorListener#onCallForwardingIndicatorChanged(boolean))`(boolean cfi) ` Callback invoked when the call-forwarding indicator changes on the registered subscription. |\n\nPublic methods\n--------------\n\n### onCallForwardingIndicatorChanged\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onCallForwardingIndicatorChanged (boolean cfi)\n```\n\nCallback invoked when the call-forwarding indicator changes on the registered\nsubscription.\nNote, the registration subscription ID comes from [TelephonyManager](/reference/android/telephony/TelephonyManager) object\nwhich registers TelephonyCallback by\n[TelephonyManager.registerTelephonyCallback(Executor, TelephonyCallback)](/reference/android/telephony/TelephonyManager#registerTelephonyCallback(java.util.concurrent.Executor,%20android.telephony.TelephonyCallback)).\nIf this TelephonyManager object was created with\n[TelephonyManager.createForSubscriptionId(int)](/reference/android/telephony/TelephonyManager#createForSubscriptionId(int)), then the callback applies to the\nsubscription ID. Otherwise, this callback applies to\n[SubscriptionManager.getDefaultSubscriptionId()](/reference/android/telephony/SubscriptionManager#getDefaultSubscriptionId()).\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_PHONE_STATE](/reference/android/Manifest.permission#READ_PHONE_STATE).\n\n\n\u003cbr /\u003e\n\n\nRequires [Manifest.permission.READ_PHONE_STATE](/reference/android/Manifest.permission#READ_PHONE_STATE)\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------|------------------|\n| `cfi` | `boolean` \u003cbr /\u003e |"]]