Skip to content

kite-core / jp.co.cyberagent.kite.core / MainThreadChecker

MainThreadChecker

interface MainThreadChecker

A helper interface to determine current thread is main thread or not.

Properties

Name Summary
isMainThread abstract val isMainThread:Boolean

Extension Functions

Name Summary
asKiteContextElement fun <T :Any>T.asKiteContextElement():Pair<KClass<*>,Any>
Creates a KiteContextElement with the KClass
checkIsMainThread funMainThreadChecker.checkIsMainThread(name:String):Unit
Asserts current thread is main thread. If it is not, then throws IllegalStateException.