# DialogCoroutineScope

class DialogCoroutineScope(activity: FragmentActivity, dialog: Dialog?, cancelable: Boolean, dispatcher: CoroutineDispatcher) : NetCoroutineScope, LifecycleObserver
Content copied to clipboard

自动加载对话框网络请求

开始: 显示对话框 错误: 提示错误信息, 关闭对话框 完全: 关闭对话框

## Parameters

activity

对话框跟随生命周期的FragmentActivity

dialog

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

cancelable

是否允许用户取消对话框

## Constructors

DialogCoroutineScope
Link copied to clipboard
fun DialogCoroutineScope(activity: FragmentActivity, dialog: Dialog? = null, cancelable: Boolean = true, dispatcher: CoroutineDispatcher = Dispatchers.Main)
Content copied to clipboard
对话框跟随生命周期的FragmentActivity

## Functions

dismiss
Link copied to clipboard
fun dismiss()
Content copied to clipboard
handleError
Link copied to clipboard
open override fun handleError(e: Throwable)
Content copied to clipboard
错误处理

## Properties

activity
Link copied to clipboard
val activity: FragmentActivity
Content copied to clipboard
对话框跟随生命周期的FragmentActivity
cancelable
Link copied to clipboard
val cancelable: Boolean = true
Content copied to clipboard
是否允许用户取消对话框
dialog
Link copied to clipboard
var dialog: Dialog? = null
Content copied to clipboard
不使用默认的加载对话框而指定对话框