NetStateMgr
NetStateMgr used to manage the page of different states.
Currently mainly supports fellowing states: NetState.EMPTY_DATA, NetState.NET_ERROR, NetState.LOADING_ERROR, NetState.LOADING.
If you want to customize the page, you can use setEmptyDataView, setNetErrorView, setLoadingView, setLoadingView, otherwise the default page will be used.
Since
1.1.1
Properties
It will be called when the layout state is NetState.EMPTY_DATA.
It will be called when the layout state is NetState.LOADING_ERROR.
It will be called when the layout state is NetState.LOADING.
It will be called when the layout state is NetState.NET_ERROR.
Functions
Set emptyDataRetryViewId for emptyDataVs.
Set loadingErrorRetryViewId for loadingErrorVs.
Set loadingViewId for loadingVs.
Set netErrorRetryViewId for netErrorVs.
You can set the view click event including the following status:EMPTY DATA.
You can set the view click event including the following status:LOADING ERROR.
You can set the view click event including the following status:LOADING.
You can set the view click event including the following status:NET ERROR.