android-components / mozilla.components.browser.icons / IconRequest / Resource

Resource

data class Resource (source)

An icon resource that can be loaded.

Parameters

url - URL the icon resource can be fetched from.

type - The type of the icon.

sizes - Optional list of icon sizes provided by this resource (if known).

mimeType - Optional MIME type of this icon resource (if known).

maskable - True if the icon represents as full-bleed icon that can be cropped to other shapes.

Types

Name Summary
Type enum class Type
An icon resource type.

Constructors

Name Summary
<init> Resource(url: String, type: Type, sizes: List<Size> = emptyList(), mimeType: String? = null, maskable: Boolean = false)
An icon resource that can be loaded.

Properties

Name Summary
maskable val maskable: Boolean
True if the icon represents as full-bleed icon that can be cropped to other shapes.
mimeType val mimeType: String?
Optional MIME type of this icon resource (if known).
sizes val sizes: List<Size>
Optional list of icon sizes provided by this resource (if known).
type val type: Type
The type of the icon.
url val url: String
URL the icon resource can be fetched from.