Notification
Notification
encapsulates information broadcast to observers via a NotificationCenter
.
struct Notification
Notification
encapsulates information broadcast to observers via a NotificationCenter
.
struct Notification
import Foundation
protocol Copyable
A type whose values can be implicitly or explicitly copied.
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 Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol ReferenceConvertible : CustomDebugStringConvertible, CustomStringConvertible, Hashable
Decorates types which are backed by a Foundation reference type.
init(name: Notification.Name, object: Any? = nil, userInfo: [AnyHashable : Any]? = nil)
Initialize a new Notification
.
var customMirror: Mirror { get }
var debugDescription: String { get }
var description: String { get }
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 == (lhs: Notification, rhs: Notification) -> Bool
func hash(into hasher: inout Hasher)
typealias Name = NSNotification.Name
typealias ReferenceType = NSNotification
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
import Alamofire
var request: Request? { get }
The Request
contained by the instance’s userInfo
, nil
otherwise.