bindData
fun bindData(lifecycleOwner: LifecycleOwner, viewModel: FrontendViewModel<*>, iviFragmentId: IviFragmentId? = null)
Binds a view that was previously inflated with inflate to its data, observed by the given lifecycleOwner.
Intended to be called from Fragment.onViewCreated. This must be called exactly once after inflate is called.
Parameters
viewModel
The ViewModel instance of the IviFragment. If the binding has a viewModel
data binding variable with a matching type, the ViewModel instance is set as value of the data binding variable.
iviFragmentId
The IviFragmentId of IviFragment. If non-null and the binding has a iviFragmentId
data binding variable, the IviFragmentId value is set as value of the data binding variable.