Added in API level 31

CallForwardingIndicatorListener


interface CallForwardingIndicatorListener
android.telephony.TelephonyCallback.CallForwardingIndicatorListener

Interface for call-forwarding indicator listener.

Summary

Public methods
abstract Unit

Callback invoked when the call-forwarding indicator changes on the registered subscription.

Public methods

onCallForwardingIndicatorChanged

Added in API level 31
abstract fun onCallForwardingIndicatorChanged(cfi: Boolean): Unit

Callback invoked when the call-forwarding indicator changes on the registered subscription. Note, the registration subscription ID comes from TelephonyManager object which registers TelephonyCallback by TelephonyManager#registerTelephonyCallback(Executor, TelephonyCallback). If this TelephonyManager object was created with TelephonyManager#createForSubscriptionId(int), then the callback applies to the subscription ID. Otherwise, this callback applies to SubscriptionManager#getDefaultSubscriptionId(). The calling app should have carrier privileges (see TelephonyManager#hasCarrierPrivileges) if it does not have the android.Manifest.permission#READ_PHONE_STATE.
Requires android.Manifest.permission#READ_PHONE_STATE