Video
public class Video : ObservableObject
The Video class provides a stream of raw image data directly from Skyle.
-
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 gaze data.Declaration
Swift
@Published private(set) public var state: States { get set } -
The
imageproperty exposes aPublisherwhich consists of the raw imageDeclaration
Swift
@Published private(set) public var image: Skyle_RawImage { get set } -
Simple cleanup stops the gRPC call by killing it.
Declaration
Swift
deinit -
Starts a video stream asyncronously, updating the
stateandpointproperties.Declaration
Swift
public func start() -
Stops a video stream asyncronously, updating the
stateproperty.Declaration
Swift
public func stop()