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
ET
when 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
version
property exposes aPublisher
which indicates the software versions of Skyle. This is managed byET
whenever a connection is established or lost.Declaration
Swift
@Published internal var version: Skyle_DeviceVersions { get set }
-
The
firmware
property exposes aPublisher
which indicates the version of the firmware.Declaration
Swift
@Published private(set) public var firmware: String { get set }
-
The
eyetracker
property exposes aPublisher
which indicates the version of the eyetracker service.Declaration
Swift
@Published private(set) public var eyetracker: String { get set }
-
The
calib
property exposes aPublisher
which indicates the version of the calibration service.Declaration
Swift
@Published private(set) public var calib: String { get set }
-
The
base
property exposes aPublisher
which indicates the version of the base image.Declaration
Swift
@Published private(set) public var base: String { get set }
-
The
skyleType
property exposes aPublisher
which indicates the type of Skyle usually 4 or 5.Declaration
Swift
@Published private(set) public var skyleType: Int32 { get set }
-
The
serial
property exposes aPublisher
which indicates the serial number of this Skyle.Declaration
Swift
@Published private(set) public var serial: UInt64 { get set }
-
The
isDemo
property exposes aPublisher
which 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_DeviceVersion
instance containing the versions of the software running on the device and other information or nil - state: A
ET.States
containing possible errors.
Declaration
Swift
public func get(completion: @escaping (_ versions: Skyle_DeviceVersions?, _ state: ET.States) -> Void = {_, _ in})
-
Legacy version provider via the http API.
Warning
This is not to be used since the API is deprecated.Declaration
Swift
internal class Legacy