Compose Unstyled 2.0 is out! Check the official announcement blog ->
Interface

SceneDecoratorStrategy

A strategy that tries to decorate a Scene given another Scene.

Source set: Common
public fun interface SceneDecoratorStrategy<T : Any>

A strategy that tries to decorate a Scene given another Scene.

Functions

decorateScene

public fun SceneDecoratorStrategyScope<T>.decorateScene(scene: Scene<T>): Scene<T>

Decorates the given Scene.

The newly returned Scene may or may not include the content of the given scene.

Note: this does not apply to OverlayScene because they are animated separately from non-overlay scenes.

Parameters

scene The scene to be decorated

Last updated: