Framework

UserNotifications

Overview

The UserNotifications framework (UserNotifications.framework) supports the delivery and handling of local and remote notifications. You use the classes of this framework to schedule the delivery of local notifications based on specific conditions, such as time or location. Apps and extensions also use this framework to receive and potentially modify local and remote notifications when they are delivered to the user’s device.

Symbols

Classes

UNCalendarNotificationTrigger

Triggers a notification at the specified date and time.

UNLocationNotificationTrigger

Triggers the delivery of a notification when the user reaches the specified geographic location.

UNMutableNotificationContent

Provides the editable content for a notification.

UNNotification

Contains the data for a delivered notification.

UNNotificationAction

Defines a task to perform in response to a delivered notification.

UNNotificationAttachment

Manages media content associated with a notification.

UNNotificationCategory

Defines the types of notifications your app supports and the custom actions displayed for each type.

UNNotificationContent

Stores the content of a local or remote notification.

UNNotificationRequest

Encompasses a notification’s content and the condition that triggers its delivery.

UNNotificationResponse

Contains the user’s response to an actionable notification.

UNNotificationServiceExtension

Modifies the content of remote notifications before they are delivered to the user.

UNNotificationSettings

Contains the notification-related settings and authorization status of your app

UNNotificationSound

Represents a sound to be played when a notification is delivered.

UNNotificationTrigger

Provides common behavior for subclasses that trigger the delivery of a notification.

UNPushNotificationTrigger

Indicates that a delivered notification was sent using the Apple Push Notification Service.

UNTextInputNotificationAction

Defines an action that contains user-specified text.

UNTextInputNotificationResponse

Contains the user’s response to an actionable notification, including any custom text that the user typed or dictated.

UNTimeIntervalNotificationTrigger

Triggers the delivery of a local notification after the specified amount of time.

UNUserNotificationCenter

Manages the notification-related activities for your app or app extension.

Protocols

UNUserNotificationCenterDelegate

Handles notification-related interactions for your app or app extension.

Structures

UNAuthorizationOptions

Constants for requesting authorization to interact with the user.

UNError
UNNotificationActionOptions

Constants indicating behaviors to apply to the action.

UNNotificationCategoryOptions

Constants indicating how to handle notifications associated with this category.

UNNotificationPresentationOptions

Constants indicating how to present a notification in a foreground app.

Extended Types

NSString

The NSString class and its mutable subclass, NSMutableString, provide an extensive set of APIs for working with strings, including methods for comparing, searching, and modifying strings. NSString objects are used throughout Foundation and other Cocoa frameworks, serving as the basis for all textual and linguistic functionality on the platform.

UNError