StrokeInputBatch.Companion
object StrokeInputBatch.Companion
Summary
Extension functions |
|
|---|---|
ImmutableStrokeInputBatch |
Read a serialized CodedStrokeInputBatch from the given |
Extension functions
decode
fun StrokeInputBatch.Companion.decode(input: InputStream): ImmutableStrokeInputBatch
Read a serialized CodedStrokeInputBatch from the given InputStream and parse it into a ImmutableStrokeInputBatch, throwing an exception if parsing or validation was not successful. Java callers should use StrokeInputBatchSerialization.decode instead.
| Parameters | |
|---|---|
input: InputStream |
|
| Returns | |
|---|---|
ImmutableStrokeInputBatch |
The |
| Throws | |
|---|---|
java.io.IOException |
if gzip-format bytes cannot be read from |
kotlin.IllegalArgumentException |
|