public static bool RunningOnUIThread ();

Descripción

Returns true if you're running on UI thread.

More information on UI and application threads can be found here.