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)

If you give priority to type(relationship)

val bestIcon: Icon? = TouchIconExtractor.fromPage(url)
.maxWith(IconComparator.REL_SIZE)

Properties

Link copied to clipboard

Comparator based on quality inferred from relationship.

Link copied to clipboard

Comparator for order by rel -> size

Link copied to clipboard

Comparator based on size.

Link copied to clipboard

Comparator for order by size -> rel