AbstractNavigationBarBuilder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override var decoration: ScopedDecoration<Scope>

Decoration of the navigation bar. Useful when you want to add custom background, foreground, shadow, paddings etc. Default value is NavigationBar.Companion.DefaultDecoration.

Link copied to clipboard

Transition of the component when it enters the parent composable. By default no transition is applied.

Link copied to clipboard

Transition of the component when it exits the parent composable. By default no transition is applied.

Link copied to clipboard

Horizontal arrangement that should be used to render the items in the navigation bar horizontally. Note that the value will be ignored in case listBuilder contains aligned items. Check EditorComponent.ListBuilder.New.aligned for more details on how to configure arrangement of aligned items. Default value is Arrangement.Start.

Link copied to clipboard

Unique id of this component. By default the value is "ly.img.component.navigationBar".

Link copied to clipboard

Decoration of the items in the navigation bar. Useful when you want to add custom background, foreground, shadow, paddings etc to the items. Prefer using this decoration when you want to apply the same decoration to all the items, otherwise set decoration to individual items. Default value is an empty decoration.

Link copied to clipboard

A list builder that builds a list of EditorComponents that should be part of the navigation bar. Note that adding items to the list does not mean displaying. The items will be displayed if EditorComponent.visible is true for them. Also note that items will be rebuilt when scope is updated. By default listBuilder does not add anything to the navigation bar.

Link copied to clipboard

Modifier of this component. By default empty Modifier is applied.

Link copied to clipboard

Scope of this component. Every new value will trigger recomposition of all ScopedPropertys such as visible, enterTransition, exitTransition etc. Consider using Compose androidx.compose.runtime.State objects in the lambdas for granular recompositions over updating the scope, since scope change triggers full recomposition of the component. Ideally, scope should be updated when the parent scope (scope of the parent component) is updated and when you want to observe changes from the Engine. Property is abstract.

Link copied to clipboard

Whether the component should be visible. By default component is always visible.

Functions

Link copied to clipboard
open override fun build(scope: Scope, id: EditorComponentId, modifier: Modifier, visible: Boolean, enterTransition: EnterTransition, exitTransition: ExitTransition, decoration: ScopedDecoration<Scope>): NavigationBar<Scope>