Touch Icon Extractor
Extract information of WebClip icon such as Apple Touch Icon or favicon related to the URL.
Parameters
http Client
HttpClientAdapter to use for internal communication. if not specified use default implementation.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
fun fromDomainWithDownload(siteUrl: String, withPrecomposed: Boolean = true, sizes: List<String> = emptyList()): Pair<Icon, ByteArray>?
It performs the same processing as fromDomain using HTTP GET, and downloads binary if icon exists.
Link copied to clipboard
Analyzes the HTML of specified URL and if there is a tag indicating WebApp Manifest, analyze the Manifest file and return icon information.
Link copied to clipboard
fun listFromDomain(siteUrl: String, withPrecomposed: Boolean = true, sizes: List<String> = emptyList()): List<Icon>
Processing similar to fromDomain is performed, but even if an icon is found, processing is not stopped but a list of all existing icon information is returned.