Searched refs:UiState (Results 1 – 7 of 7) sorted by relevance
25 import com.android.avatarpicker.ui.details.items.UiState30 private val _uiState: MutableStateFlow<UiState> = MutableStateFlow(UiState.None())36 _uiState.value = UiState.Success(result) in onSelect()39 override fun getSelected() = (uiState.value as? UiState.Success<*>)?.result in getSelected()42 _uiState.value = UiState.Loading() in getSelected()46 _uiState.value = UiState.Error(exception) in onError()50 _uiState.value = UiState.None() in unselect()
28 import com.android.avatarpicker.ui.details.items.UiState in <lambda>()37 private val _uiState: MutableStateFlow<UiState> = MutableStateFlow(UiState.None()) in <lambda>()43 _uiState.value = UiState.Success(result) in <lambda>()46 override fun getSelected() = (uiState.value as? UiState.Success<*>)?.result in <lambda>()49 _uiState.value = UiState.Loading() in <lambda>()53 _uiState.value = UiState.Error(exception) in <lambda>()57 _uiState.value = UiState.None() in <lambda>()
23 import com.android.avatarpicker.ui.details.items.UiState29 val uiState: StateFlow<UiState>
44 import com.android.avatarpicker.ui.details.items.UiState in <lambda>()82 BottomActionBar(currentResult is UiState.Success<*>, { in <lambda>()90 if (currentResult is UiState.Loading) { in <lambda>()
21 sealed class UiState : ViewModel() { class22 class Success<T : SelectableType>(val result: T) : UiState()23 class Error(val error: Exception) : UiState()24 class Loading : UiState()25 class None : UiState()
27 import com.android.avatarpicker.ui.details.items.UiState126 Truth.assertThat(handler.uiState.value is UiState.None).isTrue() in <lambda>()129 Truth.assertThat(handler.uiState.value is UiState.Success<*>).isTrue() in <lambda>()
28 import com.android.avatarpicker.ui.details.items.UiState in <lambda>()