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

ResizingProcessor

class ResizingProcessor : IconProcessor (source)

IconProcessor implementation for resizing the loaded icon based on the target size.

Constructors

Name Summary
<init> ResizingProcessor(discardSmallIcons: Boolean = true)
IconProcessor implementation for resizing the loaded icon based on the target size.

Functions

Name Summary
process fun process(context: <ERROR CLASS>, request: IconRequest, resource: Resource?, icon: Icon, desiredSize: DesiredSize): Icon?

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.