public static class WebExtension.Icon extends Object
Modifier | Constructor and Description |
---|---|
protected |
Icon()
Override for tests.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
GeckoResult<Bitmap> |
get(int pixelSize)
Get the best version of this icon for size
pixelSize . |
int |
hashCode() |
@AnyThread @NonNull public GeckoResult<Bitmap> get(int pixelSize)
pixelSize
.
Embedders are encouraged to cache the result of this method keyed with this instance.pixelSize
- pixel size at which this icon will be displayed at.GeckoResult
that resolves to the bitmap when ready.