Contents

userInfo

The custom data to associate with the notification.

Declaration

var userInfo: [AnyHashable : Any] { get set }

Mentioned in

Discussion

Use this property to associate custom information with the notification. The contents of the dictionary aren’t seen by the user, but are accessible to your app or to any notification-related app extensions.

The keys in this dictionary 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

Providing supplementary content