fromPage

fun fromPage(siteUrl: String, withManifest: Boolean = false): List<Icon>

Analyzes the HTML of the specified URL and extract the icon information specified by the link tag.

Do not call from main thread to avoid NetworkOnMainThreadException

The HTML file is downloaded up to the maximum downloadLimit and analyzed within that range. Relative icon URLs are resolved against the URL of the downloaded page after redirects when the HTTP adapter exposes that URL. Manifests are fetched only from the page's origin and read up to 1 MiB.

Return

List of acquired icons

Parameters

siteUrl

URL of analysis target page

withManifest

true: extract Web App Manifest icon too, if it exists. false: only from link tag