View.Post 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
Post(IRunnable) |
Causes the Runnable to be added to the message queue. |
Post(Action) |
Post(IRunnable)
Causes the Runnable to be added to the message queue.
[Android.Runtime.Register("post", "(Ljava/lang/Runnable;)Z", "GetPost_Ljava_lang_Runnable_Handler")]
public virtual bool Post (Java.Lang.IRunnable? action);
[<Android.Runtime.Register("post", "(Ljava/lang/Runnable;)Z", "GetPost_Ljava_lang_Runnable_Handler")>]
abstract member Post : Java.Lang.IRunnable -> bool
override this.Post : Java.Lang.IRunnable -> bool
Parameters
- action
- 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 to be added to the message queue. The runnable will be run on the user interface thread.
Java documentation for android.view.View.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.
See also
- <xref:Android.Views.View.PostDelayed(Java.Lang.IRunnable%2c+System.Int64)>
- RemoveCallbacks(IRunnable)
Applies to
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.