Expand description

Create, modify, and delete sxmo notifications.

Can be used directly or in namespace mode, where it allows for cleaning up all notifications in a namespace.

Structs

A namespace for sxmo notifications. The namespace is associated with a prefix provided during construction. Any notification additionally has an ID, which has to be unique within the namespace. The nofications are created as files in the form $prefix-$id, so keep both the variables filename-friendly (e.g. by escaping or hashing potentially unsafe IDs), or bad things can happen.

Functions

Clear the notification with a given ID. If successful, it guarantees no notification with this ID exists anymore.

Set the notification with the provided ID. This will override any previous notifications with that ID.