poul / com.sophoun.ui_state / BaseDialogFragment
abstract class BaseDialogFragment
Name | Summary |
---|---|
<init> | BaseDialogFragment() |
Name | Summary |
---|---|
baseActivity | val baseActivity: BaseActivity |
coroutineContext | open val coroutineContext: <ERROR CLASS> |
viewModelFactory | var viewModelFactory: <ERROR CLASS>? Initialize this property to provide ViewModel factory to sub class |
Name | Summary |
---|---|
layout | abstract fun layout(): Int Sub class musts provide layout resource by override this method |
onCreateView | open fun onCreateView(inflater: <ERROR CLASS>, container: <ERROR CLASS>?, savedInstanceState: <ERROR CLASS>?): <ERROR CLASS>? |
onDestroy | open fun onDestroy(): Unit Cancel coroutine job |
onStateChanged | open fun onStateChanged(state: UiState ): Unit UI must override this method to update their UI State |
setupWithViewModel | fun setupWithViewModel(vararg viewModel: BaseViewModel ): Unit |