FirmwareVersion
@objcMembers
@objc(GSFirmwareVersion)
public class FirmwareVersion : NSObject
extension FirmwareVersion: Comparable
Object that represents a version of the firmware.
-
An unknown version.
Declaration
Swift
public static let unknown: FirmwareVersion
-
Major value of the version.
Declaration
Swift
public var major: Int { get }
-
Minor value of the version.
Declaration
Swift
public var minor: Int { get }
-
Patch value of the version.
Declaration
Swift
public var patch: Int { get }
-
Type of the version.
Declaration
Swift
public var type: FirmwareVersionType { get }
-
Build number version. Only valid if type is different from .release. Negative otherwise.
Declaration
Swift
public var buildNumber: Int { get }
-
Description of the version. This will be major.minor.patch-typebuildNumber for alpha, beta and rc And major.minor.patch for prod type
Declaration
Swift
public override var description: String { get }
-
Converts a formatted version string to a FirmwareVersion.
Declaration
Swift
public static func parse(versionStr: String) -> FirmwareVersion?
Parameters
versionStr
formatted version string to parse
Return Value
a new FirmwareVersion instance corresponding to the provided version string, or
nil
if the version string could not be parsed -
Declaration
Swift
public static func < (lhs: FirmwareVersion, rhs: FirmwareVersion) -> Bool
-
Undocumented
Declaration
Swift
public static func == (lhs: FirmwareVersion, rhs: FirmwareVersion) -> Bool
-
Undocumented
Declaration
Swift
override public func isEqual(_ object: Any?) -> Bool
-
Undocumented
Declaration
Swift
public override var hash: Int { get }