sealed class CharacterDetailViewState : BaseViewState
Different states for CharacterDetailFragment.
See Also
AddedToFavorite |
Added current character to favorite list. object AddedToFavorite : CharacterDetailViewState |
AddToFavorite |
Add current character to favorite list. object AddToFavorite : CharacterDetailViewState |
AlreadyAddedToFavorite |
Already added character to favorite list. object AlreadyAddedToFavorite : CharacterDetailViewState |
Dismiss |
Dismiss the detail view. object Dismiss : CharacterDetailViewState |
Error |
Error on loading character detail info. object Error : CharacterDetailViewState |
Loading |
Loading character detail info. object Loading : CharacterDetailViewState |
isAddedToFavorite |
Check if current view state is AddedToFavorite. fun isAddedToFavorite(): Boolean |
isAddToFavorite |
Check if current view state is AddToFavorite. fun isAddToFavorite(): Boolean |
isAlreadyAddedToFavorite |
Check if current view state is AlreadyAddedToFavorite. fun isAlreadyAddedToFavorite(): Boolean |
isDismiss |
Check if current view state is Dismiss. fun isDismiss(): Boolean |
isError |
Check if current view state is Error. fun isError(): Boolean |
isLoading |
Check if current view state is Loading. fun isLoading(): Boolean |