ET
public class ET : ObservableObject
Main class of the SDK, which takes care of the connection to Skyle and exposes all parts of the API.
-
Undocumented
Declaration
Swift
public func resolution(version: Int = 3) -> CGSize -
Defenition of States that are used by all members of the SDK, indicating the connection and lifecycle of gRPC calls
See moreDeclaration
Swift
public enum States : Equatable -
The client is generated by the proto files
Declaration
Swift
private(set) public var client: Skyle_SkyleNIOClient? { get } -
The channel builder holds the configuration of the connection
Declaration
Swift
private(set) public var channelBuilder: ClientConnection.Builder { get } -
Reference to the current calibration. After each calibration please call
makeCalibration().Declaration
Swift
private(set) public var calibration: ET.Calibration { get } -
Creates a new calibration and sets
calibrationto the new instance.Declaration
Swift
public func makeCalibration() -> Calibration -
Reference to the current
controlinstance. You can create a new instance by callingmakeControl().Declaration
Swift
private(set) public var control: Control { get } -
Reference to the current
gazeinstance. You can create a new instance by callingmakeGaze().Declaration
Swift
private(set) public var gaze: Gaze { get } -
Reference to the current
positioninginstance. You can create a new instance by callingmakePositioning().Declaration
Swift
private(set) public var positioning: Positioning { get } -
Creates a new
positioninginstance and setspositioningto the new instance.Declaration
Swift
public func makePositioning() -> Positioning -
Reference to the current
profilesinstance. You can create a new instance by callingmakeProfiles().Declaration
Swift
private(set) public var profiles: Profiles { get } -
Reference to the current
resetinstance. You can create a new instance by callingmakeReset().Declaration
Swift
private(set) public var reset: Reset { get } -
Reference to the current
versioninstance. You can create a new instance by callingmakeVersion().Declaration
Swift
private(set) public var version: Version { get } -
Reference to the current
streaminstance.Declaration
Swift
private(set) public var stream: MjpegStream { get } -
Reference to the current
videoinstance. You can create a new instance by callingmakeVideo().Declaration
Swift
private(set) public var video: Video { get } -
The
connectivityproperty exposes aPublisherwhich indicates theConnectivityStateof the API of Skyle. This is normaly updated by the gRPC library but will also be updated when a Legacy eyetracker is connected.Declaration
Swift
@Published private(set) public var connectivity: ConnectivityState { get set } -
The
hardConnectivityproperty exposes aPublisherwhich indicates the connection state of the interface of Skyle. This istruewhen the ethernet interface with Skyle is available. It is normaly available before the API is available.Declaration
Swift
@Published private(set) public var hardConnectivity: Bool { get set } -
The
legacyConnectivityproperty exposes aPublisherwhich indicates the connection state of thehttpAPI of Skyle. This is only used to detectLegacydevices and will be removed when all devices are updated to a firmware version >= 3.0Declaration
Swift
@Published private(set) public var legacyConnectivity: Bool { get set } -
The
grpcErrorproperty exposes aPublisherwhich provides all errors coming from the grpc library.Declaration
Swift
@Published private(set) public var grpcError: GRPCErrorProvider? { get set } -
Initializes a new
ETwith the provided host and port to connect to.- host: The host to connect to. Defaults to
skyle.local port: The port to connect to. Defaults to
50052
Declaration
Swift
public init(host: String = "192.168.137.2", port: Int = 50052, test: Bool = false)Return Value
A brand new
ETwhich is setup to be connected to. - host: The host to connect to. Defaults to
-
Simple cleanup cancels the gRPC calls, invalidates timer and shuts down the EventLoopGroup.
Declaration
Swift
deinit -
The calibration class provides
See morePublisherand functions to perform a calibration of Skyle.Declaration
Swift
public class Calibration : ObservableObject -
Control exposes
See morePublisherwhich hold information about Skyles settings. These are partially user specific and should be pulled after a user is selected viaProfile.select,Profiles.setorProfiles.delete.Declaration
Swift
public class Control : ObservableObject -
A simple struct to provide error information thrown by the gRPC library.
See moreDeclaration
Swift
public struct GRPCErrorProvider -
Undocumented
See moreDeclaration
Swift
internal class Delegate : ConnectivityStateDelegate, ClientErrorDelegate -
Legacy connectivity provider via the http API.
See moreWarning
This is not to be used since the API is deprecated.Declaration
Swift
internal class Legacy -
The Gaze class provides a stream of gaze data directly from Skyle.
See moreDeclaration
Swift
public class Gaze : ObservableObject -
MjpegStream serves the video stream of Skyle.
See moreDeclaration
Swift
@available(*, deprecated, message: "This does not work on Skyle 3") public class MjpegStream : NSObject, URLSessionDelegate, URLSessionDataDelegate, ObservableObject -
Positioning exposes
See morePublisherwhich stream the current position of the users eyes, quality indicators and if the user is present.Declaration
Swift
public class Positioning : ObservableObject -
Profile exposes
See morePublisherwhich hold information about a profile.Declaration
Swift
@available(*, deprecated, message: "This does not work on Skyle 3") public class Profile : ObservableObject -
Profiles exposes Skyles User Profiles API which makes it possible to create, update, select and delete profiles. It also provides
See morePublisherwhich hold the currently selected profile and a list of all profiles.Declaration
Swift
@available(*, deprecated, message: "This does not work on Skyle 3") public class Profiles : ObservableObject -
Reset provides the following maintenance functions:
- Restart Skyles internal services including eyetracking, calibration and API
- Restart Skyle itself
- Reset all user data
Declaration
Swift
@available(*, deprecated, message: "This does not work on Skyle 3") public class Reset : ObservableObject -
Version provides
See morePublisherwith information about the software versions of Skyle.Declaration
Swift
public class Version : ObservableObject -
The Video class provides a stream of raw image data directly from Skyle.
See moreDeclaration
Swift
public class Video : ObservableObject