Compartilhar via


Handler.HasMessages Method

Definition

Overloads

HasMessages(Int32)

Check if there are any pending posts of messages with code 'what' in the message queue.

HasMessages(Int32, Object)

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

HasMessages(Int32)

Check if there are any pending posts of messages with code 'what' in the message queue.

[Android.Runtime.Register("hasMessages", "(I)Z", "")]
public bool HasMessages (int what);
[<Android.Runtime.Register("hasMessages", "(I)Z", "")>]
member this.HasMessages : int -> bool

Parameters

what
Int32

Returns

Attributes

Remarks

Check if there are any pending posts of messages with code 'what' in the message queue.

Java documentation for android.os.Handler.hasMessages(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

HasMessages(Int32, Object)

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

[Android.Runtime.Register("hasMessages", "(ILjava/lang/Object;)Z", "")]
public bool HasMessages (int what, Java.Lang.Object? object);
[<Android.Runtime.Register("hasMessages", "(ILjava/lang/Object;)Z", "")>]
member this.HasMessages : int * Java.Lang.Object -> bool

Parameters

what
Int32
object
Object

Returns

Attributes

Remarks

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

Java documentation for android.os.Handler.hasMessages(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