Interactable

@protocol Interactable

Protocol for an entity that reactively represents a Ripe instance

  • The ripe instance that will be represented.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) Ripe *_Nullable owner;

    Swift

    weak var owner: Ripe? { get set }
  • This method is called by the owner whenever its state changes so that the instance can update itself for the new state.

    Declaration

    Objective-C

    - (void)update:(nonnull NSDictionary *)state;

    Swift

    func update(_ state: [AnyHashable : Any])

    Parameters

    state

    A map containing the new state of the owner.