Companion

Functions

Link copied to clipboard

Resolves with an array of Notification objects representing all delivered notifications still present in Notification Center.

Link copied to clipboard
fun handleActivation(callback: (details: ActivationArguments) -> Unit)

Registers a callback to handle all notification activations. The callback is invoked whenever a notification is clicked, replied to, or has an action button pressed - regardless of whether the original Notification object is still in memory.

Link copied to clipboard

Whether or not desktop notifications are supported on the current system

Link copied to clipboard
fun remove(id: String)

Removes one or more delivered notifications from Notification Center by their identifier(s).

Link copied to clipboard
fun removeAll()

Removes all of the app's delivered notifications from Notification Center.

Link copied to clipboard
fun removeGroup(groupId: String)

Removes all delivered notifications with the given groupId from Notification Center.