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.