Share via


PhoneStateListener.OnMessageWaitingIndicatorChanged(Boolean) Method

Definition

Callback invoked when the message-waiting indicator changes on the registered subscription.

[Android.Runtime.Register("onMessageWaitingIndicatorChanged", "(Z)V", "GetOnMessageWaitingIndicatorChanged_ZHandler")]
[Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")]
public virtual void OnMessageWaitingIndicatorChanged (bool mwi);
[<Android.Runtime.Register("onMessageWaitingIndicatorChanged", "(Z)V", "GetOnMessageWaitingIndicatorChanged_ZHandler")>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
abstract member OnMessageWaitingIndicatorChanged : bool -> unit
override this.OnMessageWaitingIndicatorChanged : bool -> unit

Parameters

mwi
Boolean
Attributes

Remarks

Callback invoked when the message-waiting indicator changes on the registered subscription. Note, the registration subId comes from TelephonyManager object which registers PhoneStateListener by TelephonyManager#listen(PhoneStateListener, int). If this TelephonyManager object was created with TelephonyManager#createForSubscriptionId(int), then the callback applies to the subId. Otherwise, this callback applies to SubscriptionManager#getDefaultSubscriptionId().

This member is deprecated. Use TelephonyCallback.MessageWaitingIndicatorListener instead.

Java documentation for android.telephony.PhoneStateListener.onMessageWaitingIndicatorChanged(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to