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

# TelephonyCallback.MessageWaitingIndicatorListener

*** ** * ** ***

` public static interface TelephonyCallback.MessageWaitingIndicatorListener `   
` `

|---|
| android.telephony.TelephonyCallback.MessageWaitingIndicatorListener |

<br />

*** ** * ** ***

Interface for message waiting indicator listener.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/telephony/TelephonyCallback.MessageWaitingIndicatorListener#onMessageWaitingIndicatorChanged(boolean)(boolean mwi) ` Callback invoked when the message-waiting indicator changes on the registered subscription. |

## Public methods

### onMessageWaitingIndicatorChanged

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

```
public abstract void onMessageWaitingIndicatorChanged (boolean mwi)
```

Callback invoked when the message-waiting indicator changes on the registered subscription. Note, the registration subscription ID comes from `https://developer.android.com/reference/android/telephony/TelephonyManager` object by `https://developer.android.com/reference/android/telephony/TelephonyManager#registerTelephonyCallback(java.util.concurrent.Executor,%20android.telephony.TelephonyCallback)`. If this TelephonyManager object was created with `https://developer.android.com/reference/android/telephony/TelephonyManager#createForSubscriptionId(int)`, then the callback applies to the subscription ID. Otherwise, this callback applies to `https://developer.android.com/reference/android/telephony/SubscriptionManager#getDefaultSubscriptionId()`. 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_PHONE_STATE`.   

Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Parameters ||
|---|---|
| `mwi` | `boolean` <br /> |