Icon

data class Icon(val selected: ImageVector, val unselected: ImageVector, val contentDescriptionStringID: Int)

The class that encapsulates data to display an icon with selectable states.

Constructors

Link copied to clipboard
constructor(selected: ImageVector, unselected: ImageVector, contentDescriptionStringID: Int)

Properties

Link copied to clipboard

the string resource ID for the content description (supports internationalization).

Link copied to clipboard

the icon displayed in the active state.

Link copied to clipboard

the icon displayed in the inactive state.

Functions

Link copied to clipboard

Switch between both selected of unselected state using a boolean.