void requestFavicon(string)

Requests that KioWare retrieve the favicon from the server.

Parameters

Name Description
url string
The URL to request the favicon for.

Remarks

This function attempts to retrieve the favicon image from the server. If successfully retrieved, the onReceiveIcon callback is fired with the image data.

Examples


// attempt to target element <img id="myimage">
KioWareUtils.requestFavicon('http://www.kioware.com');
function onReceiveIcon(url, result) {
    document.getElementById('myimage').src = 'data:image/png;base64,' + result;
}

Requirements

KioWare for Android version 3.14 or greater.