Protocols

The following protocols are available globally.

Observable Entity Protocol

  • This protocol makes any entity observable, by giving it the infrastructure to subscribe and track observers. It’s up to the implementor to actually use this to send messages.

    Observables have to be classes. Observers don’t need to be classes.

    There are two required components: a UUID, which needs to remain constant during the lifetime of the instance, and an Array of observers.

    See more

    Declaration

    Swift

    public protocol RVS_GeneralObservableProtocol : AnyObject

The General Observer protocol

  • This protocol allows any entity to become an observer. The only required component is a UUID.

    See more

    Declaration

    Swift

    public protocol RVS_GeneralObserverProtocol

Subscription-Tracking Observer Protocol