Partager via


TestLooperManager.HasMessages Method

Definition

Overloads

HasMessages(Handler, Object, IRunnable)

Returns true if there are any queued messages that match the parameters.

HasMessages(Handler, Object, Int32)

Returns true if there are any queued messages that match the parameters.

HasMessages(Handler, Object, IRunnable)

Returns true if there are any queued messages that match the parameters.

[Android.Runtime.Register("hasMessages", "(Landroid/os/Handler;Ljava/lang/Object;Ljava/lang/Runnable;)Z", "GetHasMessages_Landroid_os_Handler_Ljava_lang_Object_Ljava_lang_Runnable_Handler", ApiSince=26)]
public virtual bool HasMessages (Android.OS.Handler? h, Java.Lang.Object? object, Java.Lang.IRunnable? r);
[<Android.Runtime.Register("hasMessages", "(Landroid/os/Handler;Ljava/lang/Object;Ljava/lang/Runnable;)Z", "GetHasMessages_Landroid_os_Handler_Ljava_lang_Object_Ljava_lang_Runnable_Handler", ApiSince=26)>]
abstract member HasMessages : Android.OS.Handler * Java.Lang.Object * Java.Lang.IRunnable -> bool
override this.HasMessages : Android.OS.Handler * Java.Lang.Object * Java.Lang.IRunnable -> bool

Parameters

h
Handler

the value of Message#getTarget()

object
Object

the value of Message#obj, null for any

r
IRunnable

the value of Message#getCallback()

Returns

Attributes

Remarks

Returns true if there are any queued messages that match the parameters.

Java documentation for android.os.TestLooperManager.hasMessages(android.os.Handler, java.lang.Object, java.lang.Runnable).

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(Handler, Object, Int32)

Returns true if there are any queued messages that match the parameters.

[Android.Runtime.Register("hasMessages", "(Landroid/os/Handler;Ljava/lang/Object;I)Z", "GetHasMessages_Landroid_os_Handler_Ljava_lang_Object_IHandler", ApiSince=26)]
public virtual bool HasMessages (Android.OS.Handler? h, Java.Lang.Object? object, int what);
[<Android.Runtime.Register("hasMessages", "(Landroid/os/Handler;Ljava/lang/Object;I)Z", "GetHasMessages_Landroid_os_Handler_Ljava_lang_Object_IHandler", ApiSince=26)>]
abstract member HasMessages : Android.OS.Handler * Java.Lang.Object * int -> bool
override this.HasMessages : Android.OS.Handler * Java.Lang.Object * int -> bool

Parameters

h
Handler

the value of Message#getTarget()

object
Object

the value of Message#obj, null for any

what
Int32

the value of Message#what

Returns

Attributes

Remarks

Returns true if there are any queued messages that match the parameters.

Java documentation for android.os.TestLooperManager.hasMessages(android.os.Handler, java.lang.Object, 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