init(name:object:)
Returns a new notification object with a specified name and object.
Declaration
convenience init(name aName: NSNotification.Name, object anObject: Any?)Parameters
- aName:
The name for the new notification. May not be
nil. - anObject:
The object for the new notification.
See Also
Related Documentation
post(name:object:)- Notification Programming Topics