NotificationObservationBag

public final class NotificationObservationBag : CustomStringConvertible

An object that stores multiple NotificationObservations. When the observation bag is deallocated, all its stored observations are also deallocated, removing any observers.

Note

NotificationObservationBag is thread safe.
  • Declaration

    Swift

    public var description: String { get }
  • Undocumented

    Declaration

    Swift

    public init()
  • Inserts an observation into the bag.

    Declaration

    Swift

    public func add(_ observation: NotificationObservation)
  • Removes all observations from the bag.

    Declaration

    Swift

    public func empty()