DeviceVersion

data class DeviceVersion(val asString: String) : Comparable<DeviceVersion> (source)

Provide structured access to parse and compare device version strings

Constructors

Link copied to clipboard
constructor(asString: String)

Properties

Link copied to clipboard
val asInt: Int

The integer representation of the version (e.g., 2.7.12 -> 20712). Calculated once.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun compareTo(other: DeviceVersion): Int