Stay organized with collections
Save and categorize content based on your preferences.
MessageWaitingIndicatorListener
interface MessageWaitingIndicatorListener
Interface for message waiting indicator listener.
Summary
Public methods |
abstract Unit |
Callback invoked when the message-waiting 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.MessageWaitingIndicatorListener\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMessageWaitingIndicatorListener\n===============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/telephony/TelephonyCallback.MessageWaitingIndicatorListener \"View this page in Java\") \n\n```\ninterface MessageWaitingIndicatorListener\n```\n\n|--------------------------------------------------------------------------|\n| [android.telephony.TelephonyCallback.MessageWaitingIndicatorListener](#) |\n\nInterface for message waiting indicator listener.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onMessageWaitingIndicatorChanged](#onMessageWaitingIndicatorChanged(kotlin.Boolean))`(`mwi:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Callback invoked when the message-waiting indicator changes on the registered subscription. |\n\nPublic methods\n--------------\n\n### onMessageWaitingIndicatorChanged\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onMessageWaitingIndicatorChanged(mwi: Boolean): Unit\n```\n\nCallback invoked when the message-waiting indicator changes on the registered subscription. Note, the registration subscription ID comes from [TelephonyManager](/reference/kotlin/android/telephony/TelephonyManager) object by [TelephonyManager.registerTelephonyCallback(Executor, TelephonyCallback)](/reference/kotlin/android/telephony/TelephonyManager#registerTelephonyCallback(java.util.concurrent.Executor,%20android.telephony.TelephonyCallback)). If this TelephonyManager object was created with [TelephonyManager.createForSubscriptionId(int)](/reference/kotlin/android/telephony/TelephonyManager#createForSubscriptionId(kotlin.Int)), then the callback applies to the subscription ID. Otherwise, this callback applies to [SubscriptionManager.getDefaultSubscriptionId()](/reference/kotlin/android/telephony/SubscriptionManager#getDefaultSubscriptionId()). The calling app should have carrier privileges (see [TelephonyManager.hasCarrierPrivileges](/reference/kotlin/android/telephony/TelephonyManager#hasCarrierPrivileges())) if it does not have the [android.Manifest.permission#READ_PHONE_STATE](../Manifest.permission.html#READ_PHONE_STATE:kotlin.String). \nRequires [android.Manifest.permission#READ_PHONE_STATE](../Manifest.permission.html#READ_PHONE_STATE:kotlin.String)"]]