sealed class NetworkState
Different states for any network request.
Error |
Error network state. data class Error : NetworkState |
Loading |
Loading network state. data class Loading : NetworkState |
Success |
Success network state. data class Success : NetworkState |
isError |
Check if current network state is Error. fun isError(): Boolean |
isLoading |
Check if current network state is Loading. fun isLoading(): Boolean |
isSuccess |
Check if current network state is Success. fun isSuccess(): Boolean |