Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSUserNotificationCenterMBS class.

NSUserNotificationCenterMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method User Notifications MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The constructor.

Initializes this object to point to the default user notification center.
Available in OS X v10.8 and later.

NSUserNotificationCenterMBS.deliveredNotifications as NSUserNotificationMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method User Notifications MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
An array of all user notifications delivered to the notification center.

The number of notifications the user actually sees in the user interface may be less than the size of this array.

Note that these may or may not have been actually presented to the user. See the presented property in the NSUserNotificationMBS class.

Note: A scheduled user notification that specifies a deliveryRepeatInterval remains in the scheduledNotifications list, even though it has been delivered. The item that goes into the deliveredNotifications list is a copy of the user notification item.

Available in OS X v10.8 and later.

Some examples using this method:

NSUserNotificationCenterMBS.deliverNotification(notification as NSUserNotificationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method User Notifications MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Deliver the specified user notification.
Example
dim u as new NSUserNotificationMBS

u.Title = "Hello World"
u.subtitle = "just a test"

dim c as new NSUserNotificationCenterMBS
c.deliverNotification u

notification: The user notification.

The notification will be presented to the user (subject to the user's preferences). The presented property of the NSUserNotification object will always be set to true if a notification is delivered using this method.

Available in OS X v10.8 and later.

Some examples using this method:

NSUserNotificationCenterMBS.removeAllDeliveredNotifications

Type Topic Plugin Version macOS Windows Linux iOS Targets
method User Notifications MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Remove all delivered user notifications from the user notification center.

Available in OS X v10.8 and later.

NSUserNotificationCenterMBS.removeAllScheduledNotifications

Type Topic Plugin Version macOS Windows Linux iOS Targets
method User Notifications MBS MacFrameworks Plugin 19.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Remove all scheduled user notifications from the user notification center.

Available in OS X v10.8 and later.

NSUserNotificationCenterMBS.removeDeliveredNotification(notification as NSUserNotificationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method User Notifications MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Remove a delivered user notification from the user notification center.

notification: The user notification.

If the user notification is not in deliveredNotifications, nothing happens.

Available in OS X v10.8 and later.

NSUserNotificationCenterMBS.removeScheduledNotification(notification as NSUserNotificationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method User Notifications MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Removes the specified user notification for the scheduled notifications.

notification: The user notification.

If the user notification's deliveryDate occurs before the cancellation finishes, the notification may still be delivered.
If the notification is not in the scheduled list, nothing happens.

Available in OS X v10.8 and later.

NSUserNotificationCenterMBS.scheduledNotifications as NSUserNotificationMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method User Notifications MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Specifies an array of scheduled user notifications that have not yet been delivered.

Newly scheduled notifications are added to the end of the array. You may also bulk-schedule notifications by setting this array. Bulk setting new scheduled notifications unschedules existing notifications.

Note: The scheduled user notification could be changing to a delivered notification at the time you are calling this method. and if that case the user notification will still be delivered.

Available in OS X v10.8 and later.

Some examples using this method:

NSUserNotificationCenterMBS.scheduleNotification(notification as NSUserNotificationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method User Notifications MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Schedules the specified user notification.

notification: The user notification.

Scheduled notifications are added to the end of the notification queue.
Available in OS X v10.8 and later.

Some examples using this method:

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


The biggest plugin in space...