DialogCoroutineScope

fun DialogCoroutineScope(activity: FragmentActivity, dialog: Dialog? = null, cancelable: Boolean? = null, dispatcher: CoroutineDispatcher = Dispatchers.Main)

Parameters

activity

对话框跟随生命周期的FragmentActivity

dialog

不使用默认的加载对话框而指定对话框

cancelable

是否允许用户取消对话框