# DeviceVersion

class DeviceVersion(val string: String)

Class to describe Nix device revisions

## Constructors

DeviceVersion
Link copied to clipboard
constructor(string: String)

## Types

Companion
Link copied to clipboard
object Companion

## Properties

major
Link copied to clipboard
val major: Int

Major revision number

minor
Link copied to clipboard
val minor: Int

Minor revision number

patch
Link copied to clipboard
val patch: Int

Patch revision number

prefix
Link copied to clipboard
val prefix: String

Single character prefix for this version. Expected values are 'F' for firmware version, 'H' for hardware version, 'S' for software version.

string
Link copied to clipboard
val string: String

String value for this version

## Functions

toString
Link copied to clipboard
open override fun toString(): String

Version information formatted as a string, or empty if unavailable.