Icon

data class Icon<T>(val key: T, @DrawableRes val resource: Int, val contentDescription: String?, val tint: Color? = null, val interactionSource: MutableInteractionSource? = null) : SegmentedControlItem<T>

An icon item that can be displayed in a segmented control.

Parameters

key

Unique identifier for each item in the group list.

resource

The resource id of the icon to be displayed.

contentDescription

The content description of the icon.

tint

The tint of the icon. If not provided, the default text color will be used.

interactionSource

The interaction source for the item.

Constructors

Link copied to clipboard
constructor(key: T, @DrawableRes resource: Int, contentDescription: String?, tint: Color? = null, interactionSource: MutableInteractionSource? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open override val interactionSource: MutableInteractionSource? = null
Link copied to clipboard
open override val key: T
Link copied to clipboard
Link copied to clipboard
val tint: Color? = null