Instance Property

object

The object associated with the notification.

Declaration

var object: Any? { get }

Discussion

This is often the object that posted this notification.

Typically you use this method to find out what object a notification applies to when you receive a notification.

See Also

Getting Notification Information

var name: NSNotification.Name

The name of the notification.

var userInfo: [AnyHashable : Any]?

The user information dictionary associated with the notification.

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