The interface for handling incoming notifications and notification-related actions.
- iOS 10.0+
- macOS 10.14+
- Mac Catalyst 13.0+Beta
- tvOS 10.0+
- watchOS 3.0+
Use the methods of the
UNUser protocol to handle user-selected actions from notifications, and to process notifications that arrive when your app is running in the foreground. After implementing these methods in an object, assign that object to the
delegate property of the shared
UNUser object. The user notification center object calls the methods of your delegate at appropriate times.
For information about the shared user notification center object, see