NavigationBarTileSchema

@Serializable
@SerialName(value = "NavigationBar")
data class NavigationBarTileSchema(val id: String, val events: SerializableImmutableList<EventSchema>?, val style: StyleSchema, val searchableTerms: SerializableImmutableList<String>?, val visibility: TileSchema.Visibility, val items: SerializableImmutableList<NavigationBarTileSchema.NavigationBarItem>, val selectedItemId: String) : TileSchema

Renders a Material 3 NavigationBar with one NavigationBarItem per entry in items. An item is selected when its NavigationBarItem.id equals selectedItemId; the selected item's icon is drawn in its filled variant, the others outlined. NavigationBarItem.label is rendered centered under the icon, or omitted when null.

Selection: tapping an item dispatches a local NavigationBarTileEvents.OnItemClicked and the holder stores the new selectedItemId, so the highlight moves immediately without a server round trip. Tapping the already selected item still fires everything again.

Triggers dispatched:

  • OnNavigationBarItemClickEventTrigger — fired when an item is tapped, carrying that item's NavigationBarItem.id, so events can be wired per item.

Notes: the bar itself is not clickable and fires no display trigger. It only tracks the selected item — performing the actual navigation is up to the events wired to the item clicks.

Constructors

Types

Link copied to clipboard
@Serializable
data class NavigationBarItem(val id: String, val icon: IconSchema, val label: String?)

Properties

Link copied to clipboard
@SerialName(value = "events")
open override val events: SerializableImmutableList<EventSchema>?
Link copied to clipboard
@SerialName(value = "id")
open override val id: String
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "searchableTerms")
open override val searchableTerms: SerializableImmutableList<String>?
Link copied to clipboard
@SerialName(value = "selectedItemId")
val selectedItemId: String
Link copied to clipboard
@SerialName(value = "style")
open override val style: StyleSchema
Link copied to clipboard
@SerialName(value = "visibility")
open override val visibility: TileSchema.Visibility

Functions

Link copied to clipboard
open fun isGone(): Boolean
Link copied to clipboard
open fun isVisible(): Boolean