Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.69 KB

File metadata and controls

29 lines (21 loc) · 1.69 KB

poul / com.sophoun.ui_state / BaseDialogFragment

BaseDialogFragment

abstract class BaseDialogFragment

Constructors

Name Summary
<init> BaseDialogFragment()

Properties

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

Functions

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