VirtualPresenceSubscriber

public protocol VirtualPresenceSubscriber : AnyObject

Subscriber for receiving virtual presence state events.

  • Notifies the subscriber of an updated virtual presence.

    Declaration

    Swift

    func virtualPresenceUpdated(_ virtualPresence: VirtualPresence)

    Parameters

    virtualPresence

    The updated virtual presence.

  • Notifies the subscriber that the subscription connection state has changed.

    The subscriber will not receive virtual presence change notifications until the connection state changes to .connected, and will stop receiving them once it changes to .disconnected.

    Declaration

    Swift

    func connectionStatusChanged(_ state: ConnectionState)

    Parameters

    state

    The new connection state.