Icon

data class Icon(@DrawableRes val iconId: Int, val contentDescription: String, val enabled: Boolean, val interactionSource: MutableInteractionSource? = null) : ToggleItem(source)

Data class for ToggleItem.Icon content.

Constructors

Link copied to clipboard
constructor(@DrawableRes iconId: Int, contentDescription: String, enabled: Boolean, interactionSource: MutableInteractionSource? = null)

Properties

Link copied to clipboard

content description for the ToggleItem.Icon.

Link copied to clipboard
open override val enabled: Boolean

boolean state determining if the ToggleItem.Icon is enabled.

Link copied to clipboard
val iconId: Int

drawable resource id for the ToggleItem.Icon.

Link copied to clipboard

MutableInteractionSource representing the stream of interactions for this component.