IconSource

An icon from various sources alongside an optional contentDescription and tint.

Constructors

Link copied to clipboard
constructor(@DrawableRes drawableRes: Int, contentDescription: String? = null, tint: Color? = null)

Create an icon from a drawable res.

constructor(imageVector: ImageVector, contentDescription: String? = null, tint: Color? = null)

Create an icon from a drawable res.

constructor(bitmap: ImageBitmap, contentDescription: String? = null, tint: Color? = null)

Create an icon from a drawable res.

constructor(painter: Painter, contentDescription: String? = null, tint: Color? = null)

Create an icon from a drawable res.

constructor(@DrawableRes drawableRes: Int, contentDescription: String? = null, tint: Color? = null, selectedTint: Color? = null)

Create an icon from a drawable res.

constructor(imageVector: ImageVector, contentDescription: String? = null, tint: Color? = null, selectedTint: Color? = null)

Create an icon from a drawable res.

constructor(bitmap: ImageBitmap, contentDescription: String? = null, tint: Color? = null, selectedTint: Color? = null)

Create an icon from a drawable res.

constructor(painter: Painter, contentDescription: String? = null, tint: Color? = null, selectedTint: Color? = null)

Create an icon from a drawable res.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var tint: Color?