ObserveBehaviours
public final class ObserveBehaviours
A convenience wrapper for a collection of ObserveBehaviours.
-
Add a new
behaviourto the list of behavioursDeclaration
Swift
public func addBehaviour(_ behaviour: ObserveBehaviour)Parameters
behaviournew behaviour to listen for
-
Add a collection of
behaviourDeclaration
Swift
public func addBehaviours(_ behaviours: ObserveBehaviour...)Parameters
behavioursnew behaviours to observe
-
Cancels all observations and removes them from the collection
Declaration
Swift
public func unobserve() -
Declaration
Swift
public func contains(identifier: ObservableIdentifier) -> BoolParameters
identifierThe identifier to check against
Return Value
returns true if the collection contains an
observeBehaviourwith that idenitifer -
Remove a specific behaviour from the collection
Declaration
Swift
public func remove(identifier: ObservableIdentifier)Parameters
identifierThe identifier of the
behaviourto cancel
Install in Dash
ObserveBehaviours Class Reference