跳转至

Index

net / com.drake.net.utils / androidx.lifecycle.LifecycleOwner

Extensions for androidx.lifecycle.LifecycleOwner

Name Summary
observe 快速创建LiveData的观察者fun <M> LifecycleOwner.observe(liveData: LiveData<M>?, block: M?.() ->Unit):Unit
scopeLife fun LifecycleOwner.scopeLife(lifeEvent: Event = Lifecycle.Event.ON_DESTROY, dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() ->Unit):AndroidScope
scopeNetLife fun LifecycleOwner.scopeNetLife(lifeEvent: Event = Lifecycle.Event.ON_DESTROY, dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() ->Unit):NetCoroutineScope