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
ET
when a new connection is established. In this case allProfile
s 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
state
property exposes aPublisher
which 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
Profile
stored on Skyle asyncronously, updating thestate
,profiles
andcurrentProfile
properties. -
Creates or updates a
Profile
and sets it to the currently active one. -
Deletes a
Profile
.