index.md 1.75 KB
Newer Older
MickeyMoz's avatar
MickeyMoz committed
1
2
3
4
[android-components](../../index.md) / [mozilla.components.browser.icons.decoder](../index.md) / [AndroidIconDecoder](./index.md)

# AndroidIconDecoder

MickeyMoz's avatar
MickeyMoz committed
5
`class AndroidIconDecoder : `[`IconDecoder`](../-icon-decoder/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/icons/src/main/java/mozilla/components/browser/icons/decoder/AndroidIconDecoder.kt#L21)
MickeyMoz's avatar
MickeyMoz committed
6

MickeyMoz's avatar
MickeyMoz committed
7
[IconDecoder](../-icon-decoder/index.md) that will use Android's [BitmapFactory](#) in order to decode the byte data.
MickeyMoz's avatar
MickeyMoz committed
8
9
10
11
12

### Constructors

| Name | Summary |
|---|---|
MickeyMoz's avatar
MickeyMoz committed
13
| [&lt;init&gt;](-init-.md) | `AndroidIconDecoder()`<br>[IconDecoder](../-icon-decoder/index.md) that will use Android's [BitmapFactory](#) in order to decode the byte data. |
MickeyMoz's avatar
MickeyMoz committed
14
15
16
17
18

### Functions

| Name | Summary |
|---|---|
MickeyMoz's avatar
MickeyMoz committed
19
| [decode](decode.md) | `fun decode(data: `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`, desiredSize: `[`DesiredSize`](../../mozilla.components.browser.icons/-desired-size/index.md)`): <ERROR CLASS>?`<br>Decodes the given [data](../-icon-decoder/decode.md#mozilla.components.browser.icons.decoder.IconDecoder$decode(kotlin.ByteArray, mozilla.components.browser.icons.DesiredSize)/data) into a a [Bitmap](#) or null. |
MickeyMoz's avatar
MickeyMoz committed
20
21
22
23
24
25

### Extension Functions

| Name | Summary |
|---|---|
| [loadResourceAsString](../../mozilla.components.support.test.file/kotlin.-any/load-resource-as-string.md) | `fun `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`.loadResourceAsString(path: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>Loads a file from the resources folder and returns its content as a string object. |