setIcon

open fun setIcon(url: String): MPDisplayRuleOptions

Set icon URL (will be used to download the icon asset)

Parameters

url

- url


open fun setIcon(drawable: Drawable): MPDisplayRuleOptions

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


open fun setIcon(@DrawableRes resId: Int): MPDisplayRuleOptions

Set icon from resource ID

Parameters

resId

- resource ID


open fun setIcon(@DrawableRes resId: Int, @ColorInt tint: Int): MPDisplayRuleOptions

Set icon from resource ID

Parameters

resId

- resource ID

tint

- tint


open fun setIcon(@DrawableRes resId: Int, tint: String): MPDisplayRuleOptions

Set icon from resource ID

Parameters

resId

- resource ID

tint

- Hex value of tint color


open fun setIcon(bitmap: Bitmap): MPDisplayRuleOptions

Set icon from bitmap

Parameters

bitmap

- icon bitmap