Skyle_SkyleClientProtocol
public protocol Skyle_SkyleClientProtocol : GRPCClient
Skyle service to use the eye tracker
Usage: instantiate Skyle_SkyleClient
, then call methods of this protocol to make API calls.
-
serviceName
Default implementationUndocumented
Default Implementation
Undocumented
Declaration
Swift
var serviceName: String { get }
-
Undocumented
Declaration
Swift
var interceptors: Skyle_SkyleClientInterceptorFactoryProtocol? { get }
-
calibrate(callOptions:
Default implementationhandler: ) Undocumented
Default Implementation
Used to calibrate for the current user. Streams in both directions with given message types. Client needs to close the stream when done
Callers should use the
send
method on the returned object to send messages to the server. The caller should send an.end
after the final message has been sent.Declaration
Swift
func calibrate( callOptions: CallOptions?, handler: @escaping (Skyle_CalibMessages) -> Void ) -> BidirectionalStreamingCall<Skyle_CalibControlMessages, Skyle_CalibMessages>
-
positioning(_:
Default implementationcallOptions: handler: ) Undocumented
Default Implementation
Subscribe a stream sending eye positions and quality indicators to achieve good positioning of a user. Client needs to close the stream when done
Declaration
Swift
func positioning( _ request: SwiftProtobuf.Google_Protobuf_Empty, callOptions: CallOptions?, handler: @escaping (Skyle_PositioningMessage) -> Void ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Skyle_PositioningMessage>
-
gaze(_:
Default implementationcallOptions: handler: ) Undocumented
Default Implementation
Subscribe a gaze stream, that sends coordinates of the current user gaze on a screen. Client needs to close the stream when done
Declaration
Swift
func gaze( _ request: SwiftProtobuf.Google_Protobuf_Empty, callOptions: CallOptions?, handler: @escaping (Skyle_Types_Point) -> Void ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Skyle_Types_Point>
-
trigger(_:
Default implementationcallOptions: handler: ) Undocumented
Default Implementation
Subscribe a trigger stream, that sends trigger messages, when a user fixates a point or clicks. Client needs to close the stream when done
Declaration
Swift
func trigger( _ request: SwiftProtobuf.Google_Protobuf_Empty, callOptions: CallOptions?, handler: @escaping (Skyle_TriggerMessage) -> Void ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Skyle_TriggerMessage>
-
getButton(_:
Default implementationcallOptions: ) Undocumented
Default Implementation
Unary call to get the button status
Declaration
Swift
func getButton( _ request: SwiftProtobuf.Google_Protobuf_Empty, callOptions: CallOptions? ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Skyle_Button>
-
setButton(_:
Default implementationcallOptions: ) Undocumented
Default Implementation
Unary call to configure the button actions, answers with the resulting configuration
Declaration
Swift
func setButton( _ request: Skyle_ButtonActions, callOptions: CallOptions? ) -> UnaryCall<Skyle_ButtonActions, Skyle_ButtonActions>
-
configure(_:
Default implementationcallOptions: ) Undocumented
Default Implementation
Unary call to get (OptionMessage -> empty) or set options (OptionMessage -> Options). Answers with the resulting options. Options are saved to the current user profile
Declaration
Swift
func configure( _ request: Skyle_OptionMessage, callOptions: CallOptions? ) -> UnaryCall<Skyle_OptionMessage, Skyle_Options>
-
configureStream(callOptions:
Default implementationhandler: ) Undocumented
Default Implementation
Bidirectional streaming call to ConfigureStream
Callers should use the
send
method on the returned object to send messages to the server. The caller should send an.end
after the final message has been sent.Declaration
Swift
func configureStream( callOptions: CallOptions?, handler: @escaping (Skyle_Options) -> Void ) -> BidirectionalStreamingCall<Skyle_OptionMessage, Skyle_Options>
-
getVersions(_:
Default implementationcallOptions: ) Undocumented
Default Implementation
Unary call to get software versions
Declaration
Swift
func getVersions( _ request: SwiftProtobuf.Google_Protobuf_Empty, callOptions: CallOptions? ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Skyle_DeviceVersions>
-
getProfiles(_:
Default implementationcallOptions: handler: ) Undocumented
Default Implementation
Subscribe a profile stream of all available profiles. Host ends stream when all results are sent
Declaration
Swift
func getProfiles( _ request: SwiftProtobuf.Google_Protobuf_Empty, callOptions: CallOptions?, handler: @escaping (Skyle_Profile) -> Void ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Skyle_Profile>
-
currentProfile(_:
Default implementationcallOptions: ) Undocumented
Default Implementation
Unary call to get the current profile
Declaration
Swift
func currentProfile( _ request: SwiftProtobuf.Google_Protobuf_Empty, callOptions: CallOptions? ) -> UnaryCall<SwiftProtobuf.Google_Protobuf_Empty, Skyle_Profile>
-
setProfile(_:
Default implementationcallOptions: ) Undocumented
Default Implementation
Unary call to set or create a profile. Answers with a status message (success or failure)
Declaration
Swift
func setProfile( _ request: Skyle_Profile, callOptions: CallOptions? ) -> UnaryCall<Skyle_Profile, Skyle_StatusMessage>
-
deleteProfile(_:
Default implementationcallOptions: ) Undocumented
Default Implementation
Unary call to delete a profile. Answers with a status message (success or failure)
Declaration
Swift
func deleteProfile( _ request: Skyle_Profile, callOptions: CallOptions? ) -> UnaryCall<Skyle_Profile, Skyle_StatusMessage>
-
reset(_:
Default implementationcallOptions: ) Undocumented
Default Implementation
Unary call to reset specific parts
Declaration
Swift
func reset( _ request: Skyle_ResetMessage, callOptions: CallOptions? ) -> UnaryCall<Skyle_ResetMessage, Skyle_StatusMessage>
-
cursorCalibration(callOptions:
Default implementationhandler: ) Undocumented
Default Implementation
Used to calibrate / test cursor. Streams in both directions with given message types. Client needs to close the stream when done
Callers should use the
send
method on the returned object to send messages to the server. The caller should send an.end
after the final message has been sent.Declaration
Swift
func cursorCalibration( callOptions: CallOptions?, handler: @escaping (Skyle_Types_Point) -> Void ) -> BidirectionalStreamingCall<Skyle_CalibCursorMessages, Skyle_Types_Point>
-
rawImages(_:
Default implementationcallOptions: handler: ) Undocumented
Default Implementation
Subscribe a raw image stream that sends unencoded frames. Client needs to close the stream when done
Declaration
Swift
func rawImages( _ request: SwiftProtobuf.Google_Protobuf_Empty, callOptions: CallOptions?, handler: @escaping (Skyle_RawImage) -> Void ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Skyle_RawImage>
-
rawBinocularGaze(_:
Default implementationcallOptions: handler: ) Undocumented
Default Implementation
Subscribe a unfiltered binocular gaze stream, that sends coordinates of the current user gaze per eye. Client needs to close the stream when done
Declaration
Swift
func rawBinocularGaze( _ request: SwiftProtobuf.Google_Protobuf_Empty, callOptions: CallOptions?, handler: @escaping (Skyle_BinocularGaze) -> Void ) -> ServerStreamingCall<SwiftProtobuf.Google_Protobuf_Empty, Skyle_BinocularGaze>