android-components / mozilla.components.browser.icons.generator / DefaultIconGenerator

DefaultIconGenerator

class DefaultIconGenerator : IconGenerator (source)

IconGenerator implementation that will generate an icon with a background color, rounded corners and a letter representing the URL.

Constructors

Name Summary
<init> DefaultIconGenerator(cornerRadiusDimen: Int? = R.dimen.mozac_browser_icons_generator_default_corner_radius, textColorRes: Int = R.color.mozac_browser_icons_generator_default_text_color, backgroundColorsRes: Int = R.array.mozac_browser_icons_photon_palette)
IconGenerator implementation that will generate an icon with a background color, rounded corners and a letter representing the URL.

Functions

Name Summary
generate fun generate(context: <ERROR CLASS>, request: IconRequest): Icon