Activity.RunOnUiThread 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
RunOnUiThread(IRunnable) |
Runs the specified action on the UI thread. |
RunOnUiThread(Action) |
RunOnUiThread(IRunnable)
Runs the specified action on the UI thread.
[Android.Runtime.Register("runOnUiThread", "(Ljava/lang/Runnable;)V", "")]
public void RunOnUiThread (Java.Lang.IRunnable? action);
[<Android.Runtime.Register("runOnUiThread", "(Ljava/lang/Runnable;)V", "")>]
member this.RunOnUiThread : Java.Lang.IRunnable -> unit
Parameters
- action
- IRunnable
the action to run on the UI thread
- Attributes
Remarks
Runs the specified action on the UI thread. If the current thread is the UI thread, then the action is executed immediately. If the current thread is not the UI thread, the action is posted to the event queue of the UI thread.
Java documentation for android.app.Activity.runOnUiThread(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
RunOnUiThread(Action)
public void RunOnUiThread (Action action);
member this.RunOnUiThread : Action -> unit
Parameters
- action
- Action
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.