net / com.drake.net.utils / androidx.fragment.app.Fragment
Name | Summary |
---|---|
scopeDialog | fun Fragment.scopeDialog(dialog: Dialog ? = null, cancelable: Boolean = true, dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() -> Unit ): NetCoroutineScope |
scopeLife | fun Fragment.scopeLife(lifeEvent: Event = Lifecycle.Event.ON_STOP, dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() -> Unit ): AndroidScope |
scopeNetLife | 和上述函数功能相同, 只是接受者为Fragmentfun Fragment.scopeNetLife(lifeEvent: Event = Lifecycle.Event.ON_STOP, dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() -> Unit ): NetCoroutineScope |