Class

AdaptStrategy.Reflow

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
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:

  1. PaneAdaptedValue.Reflowed, when either the reflowed pane or the target pane it's supposed to be reflowed to is the current destination; or
  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.