android-components / mozilla.components.browser.icons.processor / AdaptiveIconProcessor

AdaptiveIconProcessor

class AdaptiveIconProcessor : IconProcessor (source)

IconProcessor implementation that builds maskable icons.

Constructors

Name Summary
<init> AdaptiveIconProcessor()
IconProcessor implementation that builds maskable icons.

Functions

Name Summary
process fun process(context: <ERROR CLASS>, request: IconRequest, resource: Resource?, icon: Icon, desiredSize: DesiredSize): Icon
Creates an adaptive icon using the base icon. On older devices, non-maskable icons are not transformed.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.