IconSource
class IconSource
An icon from various sources alongside an optional contentDescription and tint.
Constructors
Link copied to clipboard
Create an icon from a drawable res.
Create an icon from a drawable res.
Create an icon from a drawable res.
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.