Compartilhar via


Handler.Post Method

Definition

Overloads

Post(Action)
Post(IRunnable)

Causes the Runnable r to be added to the message queue.

Post(Action)

public bool Post (Action action);
member this.Post : Action -> bool

Parameters

action
Action

Returns

Remarks

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

Post(IRunnable)

Causes the Runnable r to be added to the message queue.

[Android.Runtime.Register("post", "(Ljava/lang/Runnable;)Z", "")]
public bool Post (Java.Lang.IRunnable r);
[<Android.Runtime.Register("post", "(Ljava/lang/Runnable;)Z", "")>]
member this.Post : Java.Lang.IRunnable -> bool

Parameters

r
IRunnable

The Runnable that will be executed.

Returns

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

Attributes

Remarks

Causes the Runnable r to be added to the message queue. The runnable will be run on the thread to which this handler is attached.

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