Skip to content

Index

kite-runtime / jp.co.cyberagent.kite.runtime / jp.co.cyberagent.kite.core.KiteDslScope

Extensions for jp.co.cyberagent.kite.core.KiteDslScope

Name Summary
currentState val KiteDslScope.currentState: State
Returns the current Lifecycle.State.
onCreate fun KiteDslScope.onCreate(onCreate: () ->Unit):Unit
Executes the action onCreate when receives the lifecycle event Lifecycle.Event.ON_CREATE.
onDestroy fun KiteDslScope.onDestroy(onDestroy: () ->Unit):Unit
Executes the action onDestroy when receives the lifecycle event Lifecycle.Event.ON_DESTROY.
onLifecycleEvent fun KiteDslScope.onLifecycleEvent(onCreate: () ->Unit= {}, onStart: () ->Unit= {}, onResume: () ->Unit= {}, onPause: () ->Unit= {}, onStop: () ->Unit= {}, onDestroy: () ->Unit= {}):Unit
Executes the specific action when receives the corresponded lifecycle event.
onPause fun KiteDslScope.onPause(onPause: () ->Unit):Unit
Executes the action onPause when receives the lifecycle event Lifecycle.Event.ON_PAUSE.
onResume fun KiteDslScope.onResume(onResume: () ->Unit):Unit
Executes the action onResume when receives the lifecycle event Lifecycle.Event.ON_RESUME.
onStart fun KiteDslScope.onStart(onStart: () ->Unit):Unit
Executes the action onStart when receives the lifecycle event Lifecycle.Event.ON_START.
onStop fun KiteDslScope.onStop(onStop: () ->Unit):Unit
Executes the action onStop when receives the lifecycle event Lifecycle.Event.ON_STOP.