InjectedViewAdapterInstance

public final class InjectedViewAdapterInstance<T extends InjectedViewAdapter>

Internal use only.

Represents an "instance" of an InjectedViewAdapter which will be shown in one or more screens' InjectedViewContainer.

We use this class to wrap the InjectedViewAdapter and attach additional information needed to manage it.

We need to know with which InjectedViewContainer the view adapter is associated with to prevent destructive modifications from view containers that are not the currently associated one. For example if the view adapter is shown in a new view container and the previous one is destroyed then the view adapter won't be destroyed because the new associated view container is different than the old one.

Constructors

Functions

Link copied to clipboard
public final T getViewAdapter()
Link copied to clipboard
Link copied to clipboard
public final Unit setViewContainer(InjectedViewContainer<T> viewContainer)

Properties

Link copied to clipboard
private final T viewAdapter
Link copied to clipboard