setIcon
Set icon URL (will be used to download the icon asset)
Parameters
url
- url
Set icon from drawable
Parameters
drawable
- drawable
open fun setIcon(drawable: Drawable, @ColorInt tint: Int): MPDisplayRuleOptions
Content copied to clipboard
Set icon from drawable
Parameters
drawable
- drawable
tint
- tint
Set icon from drawable
Parameters
drawable
- drawable
tint
- Hex value of tint color
Set icon from resource ID
Parameters
resId
- resource ID
open fun setIcon(@DrawableRes resId: Int, @ColorInt tint: Int): MPDisplayRuleOptions
Content copied to clipboard
Set icon from resource ID
Parameters
resId
- resource ID
tint
- tint
open fun setIcon(@DrawableRes resId: Int, tint: String): MPDisplayRuleOptions
Content copied to clipboard
Set icon from resource ID
Parameters
resId
- resource ID
tint
- Hex value of tint color
Set icon from bitmap
Parameters
bitmap
- icon bitmap