Dela via


Handler.SendMessage(Message) Method

Definition

Pushes a message onto the end of the message queue after all pending messages before the current time.

[Android.Runtime.Register("sendMessage", "(Landroid/os/Message;)Z", "")]
public bool SendMessage (Android.OS.Message msg);
[<Android.Runtime.Register("sendMessage", "(Landroid/os/Message;)Z", "")>]
member this.SendMessage : 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

Pushes a message onto the end of the message queue after all pending messages before the current time. It will be received in #handleMessage, in the thread attached to this handler.

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