Classes

The following classes are available globally.

  • An opaque reference type that manages the lifetime of a notification observer.

    A NotificationObservation is initialized with a dispose block that is executed when the observer is deallocated. Inside the dispose block, you should run whatever actions are needed to remove the observer.

    Seealso

    NotificationObservationBag
    See more

    Declaration

    Swift

    public final class NotificationObservation : 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.
    See more

    Declaration

    Swift

    public final class NotificationObservationBag : CustomStringConvertible