OnDemandComposition
Creates a composition that places nothing: recompose returns its top-level component.
Its refusals are those of OnDemandComposition.
Parameters
the composition context this composition joins.
content composed on construction, by recompose, and when state it reads changes.
Creates a composition whose top-level component placement places.
placement decides where the component goes, and host receives the composition's layout and repaint requests wherever placement puts it. placement is called each time a pass composes a new top-level component: the first pass on construction, a recompose, or a pass that runs because state the content reads changed. The action it returns runs when that component leaves the composition, including on dispose. While content composes no component, none is placed. placement and the action it returns must not call recompose or dispose on this composition.
A pass refuses what OnDemandComposition lists. A failure placement or the action it returns throws reaches the caller as thrown.
Parameters
the composition context this composition joins.
the container handed to placement, which receives the composition's layout and repaint requests.
installs the top-level component and returns the action that removes it.
content composed on construction, by recompose, and when state it reads changes.