Toggle
data class Toggle(val actionId: String, val id: Int, val contentDescription: String, val icon: ToolbarIcon = ToolbarIcon.None, val state: ToolbarItemState = ToolbarItemState.Default, val position: ToolbarItem.ItemEdge = ItemEdge.Start, val overflowBehavior: ToolbarItem.OverflowBehavior = OverflowBehavior.IfRoom) : ToolbarItem
A toolbar button that reflects a selected/unselected state (e.g. an annotation tool).
Constructors
Link copied to clipboard
constructor(actionId: String, id: Int, contentDescription: String, icon: ToolbarIcon = ToolbarIcon.None, state: ToolbarItemState = ToolbarItemState.Default, position: ToolbarItem.ItemEdge = ItemEdge.Start, overflowBehavior: ToolbarItem.OverflowBehavior = OverflowBehavior.IfRoom)
Properties
Link copied to clipboard
Accessibility label and overflow-menu text for this item.
Link copied to clipboard
How this item renders its icon.
Link copied to clipboard
Whether this item shows in the row, collapses into overflow, or is always pinned to overflow.
Link copied to clipboard
Which edge of the toolbar this item is grouped against.
Link copied to clipboard
Per-item dynamic state (enabled / selected / visible).