addNotification

fun addNotification(id: String, title: String, body: String, priority: NotificationPriority = NotificationPriority.NORMAL): Result<Unit>(source)

Sends a notification with the given ID and content. Reusing an existing ID updates the previous notification.


fun addNotification(id: String, data: Map<String, Variant<*>>): Result<Unit>(source)

Sends a notification with a raw vardict for full control over notification fields.