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 a Publisher which indicates the state of the stream of positioning data.

    Declaration

    Swift

    @Published
    private(set) public var state: States { get set }
  • The position property exposes a Publisher which indicates the position of the users eyes.

    Declaration

    Swift

    @Published
    private(set) public var position: (left: Point, right: Point) { get set }
  • The isPresent property exposes a Publisher 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 a Publisher which indicates the quality of the distance of the user. Ranges from -50 to 50 with 0 indicating the optimal value.

    Declaration

    Swift

    @Published
    private(set) public var distanceQuality: Int { get set }
  • The positioningQuality property exposes a Publisher which indicates the quality of the horizontal and vertical position of the user. Ranges from -50 to 50 with 0 indicating the optimal value.

    Declaration

    Swift

    @Published
    private(set) public var positioningQuality: Int { get set }
  • The horizontalQuality property exposes a Publisher which indicates the quality of the horizontal position of the user. Ranges from -50 to 50 with 0 indicating the optimal value.

    Declaration

    Swift

    @Published
    private(set) public var horizontalQuality: Int { get set }
  • The verticalQuality property exposes a Publisher which indicates the quality of the vertical position of the user. Ranges from -50 to 50 with 0 indicating the optimal value.

    Declaration

    Swift

    @Published
    private(set) public var verticalQuality: Int { get set }
  • The face property exposes a Publisher which includes a lot of information about the tracking features including exact positions of the face, the iris, the pupil, thereflections, and the absolute distance 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
  • Starts a gaze stream asyncronously, updating the state, position, qualitySides, qualityDepth and isPresent properties.

    Declaration

    Swift

    public func start()
  • 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()