net / com.drake.net.scope / StateCoroutineScope
StateCoroutineScope¶
class StateCoroutineScope :NetCoroutineScope
缺省页作用域
Constructors¶
| Name | Summary |
|---|---|
| <init> | 缺省页作用域StateCoroutineScope(state: StateLayout, dispatcher: CoroutineDispatcher = Dispatchers.Main) |
Properties¶
| Name | Summary |
|---|---|
| state | val state: StateLayout |
Functions¶
| Name | Summary |
|---|---|
| catch | fun catch(e:Throwable):Unit |
| finally | fun finally(e:Throwable?):Unit |
| handleError | 错误处理fun handleError(e:Throwable):Unit |
| readCache | 读取缓存回调fun readCache(succeed:Boolean):Unit |
| start | fun start():Unit |