Injected View Container
Internal use only.
A container view for showing InjectedViewAdapters. It uses the InjectedViewAdapterHolder in combination with the InjectedViewAdapterInstance and InjectedViewAdapterConfigurator to display the view provided by the InjectedViewAdapter and to configure the InjectedViewAdapter.
The InjectedViewContainer observes the lifecycle of the view tree lifecycle owner:
onStart
: takes ownership of the InjectedViewAdapter, (re)creates its view, and (re)configures it,onDestroy
: destroys the InjectedViewAdapter ONLY IF it owns it.
IMPORTANT: In cases where an InjectedViewAdapter is used in InjectedViewContainers on multiple screens the strategy is that the InjectedViewContainer which entered the started state last will own the InjectedViewAdapter, will recreate its view, and will reconfigure it.
Constructors
Types
Functions
Use this method to modify the InjectedViewAdapter. It makes sure to only apply the modifications, if the InjectedViewAdapter is still owned by this container.