Version
public class Version : ObservableObject
Version provides Publisher with information about the software versions of Skyle.
-
A reference to the current client, which represents the gRPC connection. This is automatically updated by
ETwhen a new connection is established.Declaration
Swift
internal var client: Skyle_SkyleNIOClient? -
Internal empty constructor
Declaration
Swift
internal init() -
Internal constructor passing a possible client
Declaration
Swift
internal init(_ client: Skyle_SkyleNIOClient?) -
The
versionproperty exposes aPublisherwhich indicates the software versions of Skyle. This is managed byETwhenever a connection is established or lost.Declaration
Swift
@Published internal var version: Skyle_DeviceVersions { get set } -
The
firmwareproperty exposes aPublisherwhich indicates the version of the firmware.Declaration
Swift
@Published private(set) public var firmware: String { get set } -
The
eyetrackerproperty exposes aPublisherwhich indicates the version of the eyetracker service.Declaration
Swift
@Published private(set) public var eyetracker: String { get set } -
The
calibproperty exposes aPublisherwhich indicates the version of the calibration service.Declaration
Swift
@Published private(set) public var calib: String { get set } -
The
baseproperty exposes aPublisherwhich indicates the version of the base image.Declaration
Swift
@Published private(set) public var base: String { get set } -
The
skyleTypeproperty exposes aPublisherwhich indicates the type of Skyle usually 4 or 5.Declaration
Swift
@Published private(set) public var skyleType: Int32 { get set } -
The
serialproperty exposes aPublisherwhich indicates the serial number of this Skyle.Declaration
Swift
@Published private(set) public var serial: UInt64 { get set } -
The
isDemoproperty exposes aPublisherwhich indicates if the device is a demo device.Declaration
Swift
@Published private(set) public var isDemo: Bool? { get set } -
Gets the current versions of software and other info from the eyetracker Skyle.
- completion: A completion handler
- versions: A
Skyle_DeviceVersioninstance containing the versions of the software running on the device and other information or nil - state: A
ET.Statescontaining possible errors.
Declaration
Swift
public func get(completion: @escaping (_ versions: Skyle_DeviceVersions?, _ state: ET.States) -> Void = {_, _ in}) -
Legacy version provider via the http API.
See moreWarning
This is not to be used since the API is deprecated.Declaration
Swift
internal class Legacy