Contents

userInfo

The custom data to associate with the notification.

Declaration

var userInfo: [AnyHashable : Any] { get }

Mentioned in

Discussion

For remote notifications, this property contains the entire notification payload. For local notifications, you configure the property directly before scheduling the notification.

The keys in this dictionary must be property-list types—that’s, they must be types that can be serialized into the property-list format. For information about property-list types, see Property List Programming Guide.

See Also

Accessing supplementary content