checkUiThread

open fun checkUiThread()

Ensure that the code is being executed on Android's UI thread. Null-Op if the Android API isn't available (i.e. for unit tests.