Profiles
@available(*, deprecated, message: "This does not work on Skyle 3")
public class Profiles : ObservableObject
Profiles exposes Skyles User Profiles API which makes it possible to create, update, select and delete profiles.
It also provides Publisher which hold the currently selected profile and a list of all profiles.
-
A reference to the current client, which represents the gRPC connection. This is automatically updated by
ETwhen a new connection is established. In this case allProfiles are updated when this is updated.Declaration
Swift
internal var client: Skyle_SkyleNIOClient? { get set } -
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 streaming of profiles.Declaration
Swift
@Published private(set) public var state: States { get set } -
Gets all profiles and the currently active
Profilestored on Skyle asyncronously, updating thestate,profilesandcurrentProfileproperties. -
Creates or updates a
Profileand sets it to the currently active one. -
Deletes a
Profile.