setIcon

fun setIcon(uri: String, href: String? = null, mimeType: String)

Sets the icon for the bookmark for @uri. If @href is null, unsets the currently set icon. @href can either be a full URL for the icon file or the icon name following the Icon Naming specification.

If no bookmark for @uri is found one is created.

Since

2.12

Parameters

uri

a valid URI

href

the URI of the icon for the bookmark, or null

mimeType

the MIME type of the icon for the bookmark