Start native apps faster with the Composables CLI ->
Class

AdaptStrategy.Reflow

Indicate the associated pane should be reflowed when certain conditions are met.

Source set: Common
class Reflow(internal val reflowUnder: PaneScaffoldRole) : AdaptStrategy

Indicate the associated pane should be reflowed when certain conditions are met. With the default calculation functions calculateThreePaneScaffoldValue we provide, when it's a single pane layout, a pane with a reflow strategy will be adapted to either:

    supposed to be reflowed to is the current destination; or

  1. PaneAdaptedValue.Reflowed, when either the reflowed pane or the target pane it's
  2. PaneAdaptedValue.Hidden otherwise.

Note that if the current layout can have more than one horizontal partition, the pane will never be reflowed.

To provide custom adapt strategies, see the following sample:

Parameters

reflowUnder the pane that the reflowed pane will be put under; within the context of three pane scaffolds, the type of this parameter is supposed to be ThreePaneScaffoldRole.

Functions

toString

Source set: Common
override fun toString() = "AdaptStrategy[Reflow to $reflowUnder]"

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int