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

Set icon from drawable

Parameters

drawable

- drawable

tint

- tint


open fun setIcon(drawable: Drawable, tint: String): MPDisplayRuleOptions

Set icon from drawable

Parameters

drawable

- drawable

tint

- Hex value of tint color


Set icon from resource ID

Parameters

resId

- resource ID


Set icon from resource ID

Parameters

resId

- resource ID

tint

- tint


Set icon from resource ID

Parameters

resId

- resource ID

tint

- Hex value of tint color


Set icon from bitmap

Parameters

bitmap

- icon bitmap