# DialogCallback

abstract class DialogCallback<T>(activity: FragmentActivity, dialog: Dialog?, cancelable: Boolean) : NetCallback<T> , LifecycleObserver
Content copied to clipboard

会自动在网络请求开始显示加载对话框, 在网络请求时关闭对话框.

## Constructors

DialogCallback
Link copied to clipboard
fun DialogCallback(activity: FragmentActivity, dialog: Dialog? = null, cancelable: Boolean = true)
Content copied to clipboard

## Functions

dismiss
Link copied to clipboard
fun dismiss()
Content copied to clipboard
onComplete
Link copied to clipboard
@MainThread()
open override fun onComplete(call: Call, e: Throwable?)
Content copied to clipboard
网络请求完成
onStart
Link copied to clipboard
@MainThread()
open override fun onStart(request: Request)
Content copied to clipboard
网络请求开始

## Properties

activity
Link copied to clipboard
val activity: FragmentActivity
Content copied to clipboard
加载对话框所在的Activity
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
单例加载对话框.