android-components / mozilla.components.feature.prompts.dialog / ColorItem

ColorItem

data class ColorItem (source)

Represents an item in the BasicColorAdapter list.

Constructors

Name Summary
<init> ColorItem(color: Int, contentDescription: String, selected: Boolean = false)
Represents an item in the BasicColorAdapter list.

Properties

Name Summary
color val color: Int
color int that this item corresponds to.
contentDescription val contentDescription: String
accessibility description of this color.
selected val selected: Boolean
if true, this is the color that will be set when the dialog is closed.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.