isMainThread

fun isMainThread(): Boolean

Returns true if the current thread is same as Looper.getMainLooper's thread.