Platforms to show: All Mac Windows Linux Cross-Platform

Back to UNNotificationRequestMBS class.

UNNotificationRequestMBS.Available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether the UNNotificationRequest class is available.

Returns true on MacOS 10.14 or newer in 64-bit MacOS application.

UNNotificationRequestMBS.request(identifier as string, content as UNNotificationContentMBS, trigger as UNNotificationTriggerMBS) as UNNotificationRequestMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a notification request object that you use to schedule a notification.

identifier: An identifier for the request; this parameter must not be nil. You can use this identifier to cancel the request if it is still pending (see the removePendingNotificationRequests method).
content: The content of the notification. This parameter must not be nil.
trigger: The condition that causes the notification to be delivered. Specify nil to deliver the notification right away.

Returns a new notification request object.

Use this method when you want to schedule the delivery of a local notification. This method creates the request object that you subsequently pass to the addNotificationRequest method.
The system uses the identifier parameter to determine how to handle the request:

  • If you provide a unique identifier, the system creates a new notification.
  • If the identifier matches a previously delivered notification, the system alerts the user again, replaces the old notification with the new one, and places the new notification at the top of the list.
  • If the identifier matches a pending request, the new request replaces the pending request.

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


The biggest plugin in space...