Version



A Version represents a version of the Ink library's custom brush serialization format.

This is independent of the Jetpack version. A Jetpack release may have multiple brush version increments, or none at all (supporting only previously released brush versions). Version is used to determine compatibility of serialized brushes which may be shared across apps using different releases of this library.

Summary

Public companion properties

Version

A version that is always rejected by the deserializer by default.

Cmn
Version

The maximum version supported by this library.

Cmn
Version

Included with Jetpack 1.0.0.

Cmn
Version

Included with Jetpack 1.1.0-alpha01.

Cmn

Public functions

open operator Int
Cmn
open String
Cmn

Public properties

Int
Cmn

Public companion properties

DEVELOPMENT

val DEVELOPMENTVersion

A version that is always rejected by the deserializer by default. This is used for features still under development that may change or be removed entirely.

MAX_SUPPORTED

val MAX_SUPPORTEDVersion

The maximum version supported by this library.

V0

val V0Version

Included with Jetpack 1.0.0.

V1

val V1Version

Included with Jetpack 1.1.0-alpha01.

Public functions

compareTo

open operator fun compareTo(other: Version): Int

toString

open fun toString(): String

Public properties

value

val valueInt