ImmutableStrokeInputBatch



An immutable implementation of StrokeInputBatch. For a mutable alternative, see MutableStrokeInputBatch.

Summary

Public companion properties

ImmutableStrokeInputBatch

An empty ImmutableStrokeInputBatch.

Cmn

Public functions

open String
Cmn

Inherited functions

From androidx.ink.strokes.StrokeInputBatch
operator StrokeInput
get(index: Int)

Gets the value of the i-th input.

Cmn
Long

The duration between the first and last input in milliseconds.

Cmn
Int

Returns the seed value that should be used for seeding any noise generators for brush behaviors when a full stroke is regenerated with this input batch.

Cmn
Float

The physical distance in centimeters that the pointer must travel in order to produce an input motion of one stroke unit.

Cmn
InputToolType

How this input stream should be interpreted, as coming from a InputToolType.MOUSE, InputToolType.TOUCH, or InputToolType.STYLUS.

Cmn
Boolean

Whether all of the individual inputs have a defined value for StrokeInput.orientationRadians.

Cmn
Boolean

Whether all of the individual inputs have a defined value for StrokeInput.pressure.

Cmn
Boolean

Whether StrokeInput.strokeUnitLengthCm has a valid value, which is something other than StrokeInput.NO_STROKE_UNIT_LENGTH.

Cmn
Boolean

Whether all of the individual inputs have a defined value for StrokeInput.tiltRadians.

Cmn
Boolean

true if there are no StrokeInput objects in the batch, and false otherwise.

Cmn
StrokeInput
populate(index: Int, outStrokeInput: StrokeInput)

Gets the value of the i-th input and overwrites outStrokeInput, which it then returns.

Cmn

Inherited properties

From androidx.ink.strokes.StrokeInputBatch
Int

Number of StrokeInput objects in the batch.

Cmn

Public companion properties

Public functions

toString

open fun toString(): String