BrushFamily.Companion
-
android
object BrushFamily.Companion
Summary
Extension functions |
||
|---|---|---|
BrushFamily |
@ExperimentalInkCustomBrushApiRead a serialized |
android
|
BrushFamily |
Read a serialized |
android
|
Extension functions
decode
@ExperimentalInkCustomBrushApi
fun BrushFamily.Companion.decode(
input: InputStream,
getClientTextureId: BrushFamilyDecodeCallback
): BrushFamily
Read a serialized BrushFamily from the given InputStream and parse it into a BrushFamily, throwing an exception if parsing or validation was not successful. Java callers should use AndroidBrushFamilySerialization.decode instead.
| Parameters | |
|---|---|
input: InputStream |
|
getClientTextureId: BrushFamilyDecodeCallback |
A callback to store the decoded texture image, if one were encoded inside the serialized |
| Returns | |
|---|---|
BrushFamily |
The |
| Throws | |
|---|---|
java.io.IOException |
if gzip-format bytes cannot be read from |
kotlin.IllegalArgumentException |
|
decode
@ExperimentalInkCustomBrushApi
fun BrushFamily.Companion.decode(input: InputStream): BrushFamily
Read a serialized BrushFamily from the given InputStream and parse it into a BrushFamily, throwing an exception if parsing or validation was not successful. Java callers should use BrushFamilySerialization.decode instead.
| Parameters | |
|---|---|
input: InputStream |
|
| Returns | |
|---|---|
BrushFamily |
The |
| Throws | |
|---|---|
java.io.IOException |
if gzip-format bytes cannot be read from |
kotlin.IllegalArgumentException |
|