Icon Comparator
object IconComparator
Comparator for sorting based on quality.
To get the icon with the highest quality.
If you give priority to size
val bestIcon: Icon? = TouchIconExtractor.fromPage(url)
.maxWith(IconComparator.SIZE_REL)
Content copied to clipboard
If you give priority to type(relationship)
val bestIcon: Icon? = TouchIconExtractor.fromPage(url)
.maxWith(IconComparator.REL_SIZE)
Content copied to clipboard