NotificationManager

Dispatch primitive underneath a platform's MeshNotificationManager: posts opaque Notification records, cancels by slot, or wipes all active notifications. Shared code never calls it directly; the desktop and web implementations compose over it through DispatchingMeshNotificationManager, while Android renders its notifications natively.

Functions

Link copied to clipboard
abstract fun cancel(category: Notification.Category, id: Int)

Removes the notification in the slot Notification.tagFor names.

Link copied to clipboard
abstract fun cancelAll()
Link copied to clipboard
abstract suspend fun dispatch(notification: Notification): Boolean

Returns true only when the platform accepted the notification for delivery. Suspends until the platform resolves the send, so the result reflects the actual outcome rather than an optimistic guess (desktop native senders shell out to OS tools and complete asynchronously).