SingleColor

data class SingleColor(@ColorInt val colorInt: Int? = null, @ColorRes val colorRes: Int? = null, val colorHex: String? = null)

Helper class to simplify passing colors.

Parameters

colorInt

Value of color as Int.

colorRes

Res of color value.

colorHex

Color value as Hex-String.

Constructors

Link copied to clipboard
constructor(@ColorInt colorInt: Int? = null, @ColorRes colorRes: Int? = null, colorHex: String? = null)

Functions

Link copied to clipboard
fun colorInInt(context: Context): Int?

Properties

Link copied to clipboard
val colorHex: String? = null
Link copied to clipboard
val colorInt: Int? = null
Link copied to clipboard
val colorRes: Int? = null