init(name:object:userInfo:)
Initializes a notification with a specified name, object, and user information.
Declaration
init(name: NSNotification.Name, object: Any?, userInfo: [AnyHashable : Any]? = nil)Parameters
- name:
The name for the new notification. May not be
nil. - object:
The object for the new notification.
- userInfo:
The user information dictionary for the new notification. May be
nil.