Android.App.Activity.RunOnUiThread Method
Runs the specified action on the UI thread.

Syntax

[Android.Runtime.Register("runOnUiThread", "(Ljava/lang/Runnable;)V", "")]
public void RunOnUiThread (Java.Lang.IRunnable action)

Parameters

action
the action to run on the UI thread

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.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1