Platforms to show: All Mac Windows Linux Cross-Platform

UNNotificationRequestMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class User Notifications MBS MacFrameworks Plugin 19.1 Yes No No Yes, macOS only No
Function: A request to schedule a local notification, which includes the content of the notification and the trigger conditions for delivery.
Create a UNNotificationRequestMBS object when you want to schedule the delivery of a local notification. A notification request object contains a UNNotificationContentMBS object with the payload to be delivered, and it contains the UNNotificationTriggerMBS object with the conditions that trigger the delivery of the notification. To schedule the delivery of your notification, pass your request object to the addNotificationRequest method of the shared user notification center object.

After scheduling a request, you interact with UNNotificationRequestMBS objects in the following ways:

  • View your app's pending notifications by calling the getPendingNotificationRequestsWithCompletionHandler: method of your shared user notification center object.
  • When a notification is delivered to your app, the provided UNNotificationMBS object contains a UNNotificationRequest object that you can inspect to get the notification details.
  • Use the request's identifier to remove delivered notifications from Notification Center.

When receiving a local or remote notification, use the provided UNNotificationRequestMBS object to fetch details about the notification.

Feedback, Comments & Corrections

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some events for this class:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.

UNNotificationMBS   -   UNNotificationResponseMBS

The biggest plugin in space...

MBS Xojo PDF Plugins