index.md 1.9 KB

net / com.drake.net / com.yanzhenjie.kalle.KalleConfig.Builder

Extensions for com.yanzhenjie.kalle.KalleConfig.Builder

Name Summary
cacheEnabled 开启缓存fun Builder.cacheEnabled(path:String= NetConfig.app.cacheDir.absolutePath, password:String= "cache"):Unit
onDialog 设置使用DialogObserver默认弹出的加载对话框 默认使用系统自带的ProgressDialogfun Builder.onDialog(block:DialogCoroutineScope.(context: FragmentActivity) ->Dialog):Unit
onError 该函数指定某些Observer的onError中的默认错误信息处理fun Builder.onError(block:Throwable.() ->Unit):Unit
onStateError 该函数指定某些Observer的onError中的默认错误信息处理fun Builder.onStateError(block:Throwable.(view:View) ->Unit):Unit