TestLooperManager.HasMessages Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
the value of Message#getCallback()
Returns
- Attributes
Remarks
Returns true if there are any queued messages that match the parameters.
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.
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.