Instance Method

post(name:object:userInfo:)

Creates a notification with information, and posts it to the receiver.

Declaration

func post(name aName: NSNotification.Name, object anObject: String?, userInfo aUserInfo: [AnyHashable : Any]? = nil)

Parameters

notificationName

Name of the notification to post. Must not be nil.

notificationSender

Sender of the notification. May be nil.

notificationInfo

Dictionary containing additional information. May be nil.

Discussion

This method invokes postNotificationName(_:object:userInfo:deliverImmediately:) with deliverImmediately:NO.

See Also

Posting Notifications

func post(name: NSNotification.Name, object: String?)

Creates a notification, and posts it to the receiver.

func postNotificationName(NSNotification.Name, object: String?, userInfo: [AnyHashable : Any]?, deliverImmediately: Bool)

Creates a notification with information and an immediate-delivery specifier, and posts it to the receiver.