ComposeViewModel

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val applicationContext: Context
Link copied to clipboard
open override val baseUiState: MutableStateFlow<BaseUiState>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
open override fun dismissDialog()
Link copied to clipboard
Link copied to clipboard
open fun getKoin(): Koin
Link copied to clipboard
open fun handleError(throwable: Throwable, onDismiss: () -> Unit)
Link copied to clipboard
open override fun hideLoading()
Link copied to clipboard
open override fun onError(throwable: Throwable)
Link copied to clipboard
open fun onErrorDefaultCase(throwable: Throwable, onDismiss: () -> Unit)
Link copied to clipboard
open override fun showDialog(model: PickerDateDialogModel)
open override fun showDialog(model: CustomDialogModel)
open override fun showDialog(model: ListDialogModel)
open override fun showDialog(title: String, message: String, positiveText: String, positiveListener: () -> Unit, cancelable: Boolean, onDismiss: () -> Unit?)
open override fun showDialog(title: String, message: String, positiveText: String, positiveListener: () -> Unit, negativeButton: String?, negativeText: () -> Unit, cancelable: Boolean, onDismiss: () -> Unit?)
Link copied to clipboard
open override fun showDialogDate(positiveText: String, negativeText: String?, yearsRange: IntRange?, initialDate: LocalDate?, initialDisplayMode: InitialDisplayMode, negativeListener: () -> Unit, onDismiss: () -> Unit?, positiveListener: (date: LocalDate) -> Unit)
Link copied to clipboard
open override fun showDialogList(title: String, items: List<ComposableListable>, positiveText: String, negativeText: String?, multiple: Boolean, selected: List<ComposableListable>, positiveListener: (items: List<ComposableListable>) -> Unit, onCheckedChange: (checked: Boolean, item: ComposableListable) -> Unit, cancelable: Boolean, onDismiss: () -> Unit?)
Link copied to clipboard
open override fun showLoading()
Link copied to clipboard
open override fun <T> toResultCoroutine(coroutineContext: CoroutineContext, activateLoading: Boolean, actionOk: suspend (item: T) -> Unit?, actionKo: suspend (throwable: Throwable) -> Unit?, action: suspend () -> T): Job