index.md 1.3 KB

net / com.drake.net.interfaces / NetCallback

NetCallback

abstract class NetCallback<T> : Callback

Constructors

Name Summary
<init> NetCallback()

Functions

Name Summary
onComplete 请求完成fun onComplete(call: Call, e:IOException?):Unit
onError 请求错误fun onError(call: Call, e:IOException):Unit
onFailure open fun onFailure(call: Call, e:IOException):Unit
onResponse open fun onResponse(call: Call, response: Response):Unit
onSuccess 请求成功abstract fun onSuccess(call: Call, data: T):Unit