Application.RunningOnUIThread

public static bool RunningOnUIThread();

Description 描述

Returns true if you're running on UI thread.

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