VastFragment

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
protected open fun clearBinding()

Clear the ViewBinding. By default, it will throw a IllegalStateException.

Link copied to clipboard
protected open fun createViewModel(modelClass: Class<out ViewModel>): ViewModel

Return a ViewModel.

Link copied to clipboard
protected open fun getBinding(): ViewBinding

Get the ViewBinding. By default, it will throw a IllegalStateException.

Link copied to clipboard
protected fun getDefaultTag(): String
Link copied to clipboard
protected open fun getViewModel(): ViewModel

Get the ViewModel. By default, it will throw a IllegalStateException.

Link copied to clipboard
protected open fun setVmBySelf(): Boolean

When setVmBySelf is true, it means that ViewModelStoreOwner is Fragment itself. When you want ViewModelStoreOwner to be the androidx.fragment.app.FragmentActivity this fragment is currently associated with, set setVmBySelf to false.