Classes
The following classes are available globally.
-
An opaque reference type that manages the lifetime of a notification observer.
A
NotificationObservationis 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.See moreSeealso
NotificationObservationBagDeclaration
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.See moreNote
NotificationObservationBagis thread safe.Declaration
Swift
public final class NotificationObservationBag : CustomStringConvertible
View on GitHub
Classes Reference