InputToolType



The type of input tool used in producing androidx.ink.strokes.StrokeInput, used by BrushBehavior to define when a behavior is applicable.

Summary

Public companion properties

InputToolType
Cmn
InputToolType
Cmn
InputToolType
Cmn
InputToolType
Cmn

Public functions

Version

Returns the minimum required Version for this InputToolType.

Cmn
open String
Cmn

Public companion properties

MOUSE

val MOUSEInputToolType

STYLUS

val STYLUSInputToolType

TOUCH

val TOUCHInputToolType

UNKNOWN

val UNKNOWNInputToolType

Public functions

calculateMinimumRequiredVersion

fun calculateMinimumRequiredVersion(): Version

Returns the minimum required Version for this InputToolType.

By default, decoding a BrushFamily containing an InputToolType with a minimum required version higher than Version.MAX_SUPPORTED will fail.

toString

open fun toString(): String