StructureFoundation5.9.0
Notification
Notification
encapsulates information broadcast to observers via a NotificationCenter
.
struct Notification
Citizens in Foundation
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomReflectable
A type that explicitly supplies its own mirror.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol ReferenceConvertible
Decorates types which are backed by a Foundation reference type.
Members
init(name: Notification.Name, object: Any?, userInfo: [AnyHashable : Any]?
) Initialize a new
Notification
.var customMirror: Mirror
var debugDescription: String
var description: String
var name: Notification.Name
A tag identifying the notification.
var object: Any?
An object that the poster wishes to send to observers.
var userInfo: [AnyHashable : Any]?
Storage for values or objects related to this notification.
static func == (Notification, Notification
) -> Bool func hash(into: inout Hasher
) typealias Name
typealias ReferenceType