Instance Method

post(name:object:userInfo:)

Creates a notification with a given name, sender, and information and posts it to the notification center.

Declaration

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

Parameters

aName

The name of the notification.

anObject

The object posting the notification.

aUserInfo

Optional information about the the notification.

See Also

Posting Notifications

func post(Notification)

Posts a given notification to the notification center.

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

Creates a notification with a given name and sender and posts it to the notification center.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software