Module user_notifications

Source
Expand description

Push user-facing notifications to the user’s device from a server, or generate them locally from your app.

Structs§

UNCalendarNotificationTrigger
UNLocationNotificationTrigger
A trigger condition that causes the system to deliver a notification when the user’s device enters or exits a geographic region you specify.
UNMutableNotificationContent
The editable content for a notification.
UNNotification
The data for a local or remote notification the system delivers to your app.
UNNotificationAction
UNNotificationActionIcon
UNNotificationAttachment
A media file associated with a notification.
UNNotificationCategory
A type of notification your app supports and the custom actions that the system displays.
UNNotificationContent
The uneditable content of a notification.
UNNotificationContentProviding
A protocol the system uses to provide context relevant to user notifications.
UNNotificationRequest
A request to schedule a local notification, which includes the content of the notification and the trigger conditions for delivery.
UNNotificationResponse
The user’s response to an actionable notification.
UNNotificationServiceExtension
An object that modifies the content of a remote notification before it’s delivered to the user.
UNNotificationSettings
The object for managing notification-related settings and the authorization status of your app.
UNNotificationSound
The sound played upon delivery of a notification.
UNNotificationTrigger
The common behavior for subclasses that trigger the delivery of a local or remote notification.
UNPushNotificationTrigger
A trigger condition that indicates Apple Push Notification Service (APNs) has sent the notification.
UNTextInputNotificationAction
UNTextInputNotificationResponse
The user’s response to an actionable notification, including any custom text that the user typed or dictated.
UNTimeIntervalNotificationTrigger
A trigger condition that causes the system to deliver a notification after the amount of time you specify elapses.
UNUserNotificationCenter
The central object for managing notification-related activities for your app or app extension.

Enums§

UNAlertStyle
Constants indicating the presentation styles for alerts.
UNAuthorizationOptions
Options that determine the authorized features of local and remote notifications.
UNAuthorizationStatus
Constants indicating whether the app is allowed to schedule notifications.
UNErrorCode
Constants that identify notification errors.
UNNotificationActionOptions
UNNotificationCategoryOptions
UNNotificationInterruptionLevel
UNNotificationPresentationOptions
Constants indicating how to present a notification in a foreground app.
UNNotificationSetting
Constants that indicate the current status of a notification setting.
UNShowPreviewsSetting
Constants indicating the style previewing a notification’s content.

Statics§

UNNotificationAttachmentOptionsThumbnailClippingRectKey
The clipping rectangle for a thumbnail image.
UNNotificationAttachmentOptionsThumbnailHiddenKey
A Boolean value indicating whether the system hides the attachment’s thumbnail.
UNNotificationAttachmentOptionsThumbnailTimeKey
The frame number of an animation to use as a thumbnail image.
UNNotificationAttachmentOptionsTypeHintKey
A hint about an attachment’s file type.
UNUSER_NOTIFICATION_CENTER_PTR
Pointer for UNUserNotificationCenter

Traits§

IUNCalendarNotificationTrigger
A trait containing all the methods for UNCalendarNotificationTrigger
IUNLocationNotificationTrigger
A trait containing all the methods for UNLocationNotificationTrigger
IUNMutableNotificationContent
A trait containing all the methods for UNMutableNotificationContent
IUNNotification
A trait containing all the methods for UNNotification
IUNNotificationAction
A trait containing all the methods for UNNotificationAction
IUNNotificationActionIcon
A trait containing all the methods for UNNotificationActionIcon
IUNNotificationAttachment
A trait containing all the methods for UNNotificationAttachment
IUNNotificationCategory
A trait containing all the methods for UNNotificationCategory
IUNNotificationContent
A trait containing all the methods for UNNotificationContent
IUNNotificationRequest
A trait containing all the methods for UNNotificationRequest
IUNNotificationResponse
A trait containing all the methods for UNNotificationResponse
IUNNotificationServiceExtension
A trait containing all the methods for UNNotificationServiceExtension
IUNNotificationSettings
A trait containing all the methods for UNNotificationSettings
IUNNotificationSound
A trait containing all the methods for UNNotificationSound
IUNNotificationTrigger
A trait containing all the methods for UNNotificationTrigger
IUNPushNotificationTrigger
A trait containing all the methods for UNPushNotificationTrigger
IUNTextInputNotificationAction
A trait containing all the methods for UNTextInputNotificationAction
IUNTextInputNotificationResponse
A trait containing all the methods for UNTextInputNotificationResponse
IUNTimeIntervalNotificationTrigger
A trait containing all the methods for UNTimeIntervalNotificationTrigger
IUNUserNotificationCenter
A trait containing all the methods for UNUserNotificationCenter
PUNUserNotificationCenterDelegate
An interface for processing incoming notifications and responding to notification actions.

Functions§

register_user_notification_center_delegate_class
Registers an NSObject application delegate, and configures it for the various callbacks and pointers we need to have.

Type Aliases§

UNNotificationSoundName