Positioning
public class Positioning : ObservableObject
Positioning exposes Publisher
which stream the current position of the users eyes,
quality indicators and if the user is present.
-
The width in pixels of the delivered image (guidance)
Declaration
Swift
public static let Width: Double
-
The height in pixels of the delivered image (guidance)
Declaration
Swift
public static let Height: Double
-
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
state
property exposes aPublisher
which indicates the state of the stream of positioning data.Declaration
Swift
@Published private(set) public var state: States { get set }
-
The
isPresent
property exposes aPublisher
which indicates if a user is present. This is updated with one second of delay to smooth out small detection errors.Declaration
Swift
@Published private(set) public var isPresent: Bool { get set }
-
The
distanceQuality
property exposes aPublisher
which indicates the quality of the distance of the user. Ranges from-50
to50
with0
indicating the optimal value.Declaration
Swift
@Published private(set) public var distanceQuality: Int { get set }
-
The
positioningQuality
property exposes aPublisher
which indicates the quality of the horizontal and vertical position of the user. Ranges from-50
to50
with0
indicating the optimal value.Declaration
Swift
@Published private(set) public var positioningQuality: Int { get set }
-
The
horizontalQuality
property exposes aPublisher
which indicates the quality of the horizontal position of the user. Ranges from-50
to50
with0
indicating the optimal value.Declaration
Swift
@Published private(set) public var horizontalQuality: Int { get set }
-
The
verticalQuality
property exposes aPublisher
which indicates the quality of the vertical position of the user. Ranges from-50
to50
with0
indicating the optimal value.Declaration
Swift
@Published private(set) public var verticalQuality: Int { get set }
-
The
face
property exposes aPublisher
which includes a lot of information about the tracking features including exact positions of the face, theiris
, thepupil
, thereflections
, and the absolutedistance
in mm of each eye.Declaration
Swift
@Published private(set) public var face: Skyle_Types_Face? { get set }
-
Simple cleanup stops the gRPC call by killing it.
Declaration
Swift
deinit
-
Stops a gaze stream asyncronously, updating the
state
property.Declaration
Swift
public func stop()
-
Undocumented
Declaration
Swift
public func fakeStart()
-
Undocumented
Declaration
Swift
public func fakeStop()