ObserveBehaviours

public final class ObserveBehaviours

A convenience wrapper for a collection of ObserveBehaviours.

  • Add a new behaviour to the list of behaviours

    Declaration

    Swift

    public func addBehaviour(_ behaviour: ObserveBehaviour)

    Parameters

    behaviour

    new behaviour to listen for

  • Add a collection of behaviour

    Declaration

    Swift

    public func addBehaviours(_ behaviours: ObserveBehaviour...)

    Parameters

    behaviours

    new behaviours to observe

  • Cancels all observations and removes them from the collection

    Declaration

    Swift

    public func unobserve()
  • Declaration

    Swift

    public func contains(identifier: ObservableIdentifier) -> Bool

    Parameters

    identifier

    The identifier to check against

    Return Value

    returns true if the collection contains an observeBehaviour with that idenitifer

  • Remove a specific behaviour from the collection

    Declaration

    Swift

    public func remove(identifier: ObservableIdentifier)

    Parameters

    identifier

    The identifier of the behaviour to cancel