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
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
stateproperty exposes aPublisherwhich indicates the state of the stream of positioning data.Declaration
Swift
@Published private(set) public var state: States { get set } -
The
isPresentproperty exposes aPublisherwhich 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
distanceQualityproperty exposes aPublisherwhich indicates the quality of the distance of the user. Ranges from-50to50with0indicating the optimal value.Declaration
Swift
@Published private(set) public var distanceQuality: Int { get set } -
The
positioningQualityproperty exposes aPublisherwhich indicates the quality of the horizontal and vertical position of the user. Ranges from-50to50with0indicating the optimal value.Declaration
Swift
@Published private(set) public var positioningQuality: Int { get set } -
The
horizontalQualityproperty exposes aPublisherwhich indicates the quality of the horizontal position of the user. Ranges from-50to50with0indicating the optimal value.Declaration
Swift
@Published private(set) public var horizontalQuality: Int { get set } -
The
verticalQualityproperty exposes aPublisherwhich indicates the quality of the vertical position of the user. Ranges from-50to50with0indicating the optimal value.Declaration
Swift
@Published private(set) public var verticalQuality: Int { get set } -
The
faceproperty exposes aPublisherwhich includes a lot of information about the tracking features including exact positions of the face, theiris, thepupil, thereflections, and the absolutedistancein 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
stateproperty.Declaration
Swift
public func stop() -
Undocumented
Declaration
Swift
public func fakeStart() -
Undocumented
Declaration
Swift
public func fakeStop()