SudoSubscriber
public protocol SudoSubscriber
Subscriber for receiving notifications about new, updated or deleted Sudo.
-
Notifies the subscriber of a new, updated or deleted Sudo.
Declaration
Swift
func sudoChanged(changeType: SudoChangeType, sudo: Sudo)
Parameters
changeType
Change type. Please refer to
SudoChangeType
.sudo
New, updated or deleted Sudo.
-
Notifies the subscriber that the subscription connection state has changed. The subscriber won’t be notified of Sudo changes until the connection status changes to
connected
. The subscriber will stop receiving Sudo change notifications when the connection state changes todisconnected
.Declaration
Swift
func connectionStatusChanged(state: SubscriptionConnectionState)
Parameters
state
Connection state.