public static bool RunningOnUIThread ();

설명

Returns true if you're running on UI thread.

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