NotificationManager

An interface for posting notifications to the user.

Posting notifications may require explicit permission granted by the user, use rememberNotificationPermissionState to check for or request this permission.

Inheritors

Types

Link copied to clipboard

The default implementation of NotificationManager on the platform.

Functions

Link copied to clipboard
abstract suspend fun cancel(notificationId: NotificationId)

Cancels a pending or delivered notification.

Link copied to clipboard
abstract suspend fun cancelAll()

Cancels all pending and delivered notifications.

Link copied to clipboard
abstract suspend fun notify(notification: Notification, notificationId: NotificationId? = null): NotificationId

Posts or updates a notification to be shown in the status bar.