bindFragmentContainer

fun bindFragmentContainer(@IdRes stubId: Int?, panelFragmentContainerId: PanelFragmentContainerId, panelAttachmentProvider: PanelAttachmentProvider): MutableSubContainerCreation<VM, SD>

Binds a panelAttachmentProvider to the first matching FragmentContainerView of the panel sub-container.

A FragmentContainerView is considered matching if its current view ID matches the stubId. If stubId is null any FragmentContainerView matches.

The matching FragmentContainerView view ID is set to panelFragmentContainerId.

The panelAttachmentProvider provides the panel that should be attached to the FragmentContainerView each time the panel sub-container data changes. The panelAttachmentProvider also provides the panel context factory.

This function may not be used after createPanelFragmentAdapters is read.