Compartilhar via


Handler.SendMessageAtFrontOfQueue(Message) Method

Definition

Enqueue a message at the front of the message queue, to be processed on the next iteration of the message loop.

[Android.Runtime.Register("sendMessageAtFrontOfQueue", "(Landroid/os/Message;)Z", "")]
public bool SendMessageAtFrontOfQueue (Android.OS.Message msg);
[<Android.Runtime.Register("sendMessageAtFrontOfQueue", "(Landroid/os/Message;)Z", "")>]
member this.SendMessageAtFrontOfQueue : Android.OS.Message -> bool

Parameters

msg
Message

Returns

Returns true if the message was successfully placed in to the message queue. Returns false on failure, usually because the looper processing the message queue is exiting.

Attributes

Remarks

Enqueue a message at the front of the message queue, to be processed on the next iteration of the message loop. You will receive it in #handleMessage, in the thread attached to this handler. <b>This method is only for use in very special circumstances -- it can easily starve the message queue, cause ordering problems, or have other unexpected side-effects.</b>

Java documentation for android.os.Handler.sendMessageAtFrontOfQueue(android.os.Message).

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