編集

次の方法で共有


UserNotifications Namespace

The UserNotifications framework consolidates the delivery and handling of local and remote user notifications.

Classes

UNCalendarNotificationTrigger

Triggers the delivery of a notification at a specified day or time, either once or repeatedly.

UNErrorCodeExtensions

Extension methods for the UserNotifications.UNErrorCode enumeration.

UNLocationNotificationTrigger

Triggers the delivery of a notification when the device enters or leaves a geographic area.

UNMutableNotificationContent

Developer-created object that specifies the parts of a notification, including text, sound, badge and launch images, attachments, and so on, for a notification request.

UNNotification

System-created notification that contains the original request, the notification content, the trigger that caused delivery, and the date of the delivery.

UNNotificationAction

An action that can be performed in response to a notification.

UNNotificationAttachment

Audio, video, or images that are displayed with notifications.

UNNotificationAttachmentOptions

A dictionary of values that control aspects of notification behavior.

UNNotificationCategory

Implements a group of actions and options that comprise a category of notifications.

UNNotificationContent

System-generated object that contains the parts of a notification, including text, sound, badge and launch images, attachments, and so on.

UNNotificationRequest

Contains the content and trigger for a notification that the developer requests from UNUserNotificationCenter..

UNNotificationResponse

A system-created object that contains information about how a user responded to a notification.

UNNotificationServiceExtension

Class for processing push notification payloads before delivery.

UNNotificationSettings

System-supplied object that contains current notification and device settings for an application.

UNNotificationSound

Contains a Linear PCM, MA4, µLaw, or aLaw sound to play when a notification is delivered.

UNNotificationTrigger

Triggers a notification when a condition is met.

UNPushNotificationTrigger

Trigger that is created by the system to activate push notification triggers.

UNTextInputNotificationAction

An action that accepts text input from the user before the response is given to the app.

UNTextInputNotificationResponse

System-created object that contains a user response to a UNTextInputNotificationAction.

UNTimeIntervalNotificationTrigger

Triggers a notification after a time interval.

UNUserNotificationCenter

System-provided class that lets the developer schedule and manage notifications.

UNUserNotificationCenterDelegate

A class that is used to receive events from a UNUserNotificationCenter.

UNUserNotificationCenterDelegate_Extensions

Extension methods to the IUNUserNotificationCenterDelegate interface to support all the methods from the UNUserNotificationCenterDelegate protocol.

Interfaces

IUNUserNotificationCenterDelegate

Interface representing the required methods (if any) of the protocol UNUserNotificationCenterDelegate.

Enums

UNAlertStyle

Enumerates the kinds of alerts that notifications display.

UNAuthorizationOptions

Enumerates user interaction authorization requests.

UNAuthorizationStatus

Enumerates ways in which the user can respond to a request for permission to post notifications.

UNErrorCode

Enumerates attached file errors that can occur when making a notification request.

UNNotificationActionOptions

Enumerates behavior options for notification actions.

UNNotificationCategoryOptions

Contains flags that control whether a custom dismiss action is used, and whether the category is allowed in CarPlay application.

UNNotificationPresentationOptions

Enumerates flags that control the presentation of notifications in foreground apps.

UNNotificationSetting

Enumerates notification states.

UNShowPreviewsSetting

Enumerates times when notification previews are shown.

Remarks

Starting in iOS 10 (Fall 2016), the APIs for local and remote notifications were refactored and consolidated in the UserNotifications framework. This framework allows notifications in a more consistent manner and with less chance of repetitive code.

See also