NetworkState

sealed class NetworkState

Deprecated

Replace with LoadState

Replace with

import co.anitrend.arch.domain.entities.LoadState
LoadState

State representing ongoing, completed or failed requests

Inheritors

Types

Link copied to clipboard
data class Error(val code: Int? = null, val heading: String? = null, val message: String? = null) : NetworkState

Network state for failed requests with an optional message or code

Link copied to clipboard
data object Idle : NetworkState

Represents a state of idle

Link copied to clipboard
data object Loading : NetworkState

Represents a network state of loading

Link copied to clipboard
data object Success : NetworkState

Represents a network state that has succeeded