Share via


Handler.RemoveMessages Method

Definition

Overloads

RemoveMessages(Int32)

Remove any pending posts of messages with code 'what' that are in the message queue.

RemoveMessages(Int32, Object)

Remove any pending posts of messages with code 'what' and whose obj is 'object' that are in the message queue.

RemoveMessages(Int32)

Remove any pending posts of messages with code 'what' that are in the message queue.

[Android.Runtime.Register("removeMessages", "(I)V", "")]
public void RemoveMessages (int what);
[<Android.Runtime.Register("removeMessages", "(I)V", "")>]
member this.RemoveMessages : int -> unit

Parameters

what
Int32
Attributes

Remarks

Remove any pending posts of messages with code 'what' that are in the message queue.

Java documentation for android.os.Handler.removeMessages(int).

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

RemoveMessages(Int32, Object)

Remove any pending posts of messages with code 'what' and whose obj is 'object' that are in the message queue.

[Android.Runtime.Register("removeMessages", "(ILjava/lang/Object;)V", "")]
public void RemoveMessages (int what, Java.Lang.Object? object);
[<Android.Runtime.Register("removeMessages", "(ILjava/lang/Object;)V", "")>]
member this.RemoveMessages : int * Java.Lang.Object -> unit

Parameters

what
Int32
object
Object
Attributes

Remarks

Remove any pending posts of messages with code 'what' and whose obj is 'object' that are in the message queue. If <var>object</var> is null, all messages will be removed.

Java documentation for android.os.Handler.removeMessages(int, java.lang.Object).

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