NotificationCenterService

interface NotificationCenterService

A service for a notification center, which offers additional interaction with notifications to the user.

A notification center is a UI that allows users to access notifications in more detail than the system UI offers by default. E.g., a notification center may allow previously suppressed or dismissed notifications to be seen.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val numberOfSuppressedNotifications: Int

The number of notifications that were not presented to the user because they were suppressed.

Link copied to clipboard
abstract val showSuppressedNotifications: Boolean

Whether previously suppressed notifications (indicated by numberOfSuppressedNotifications) should be presented to the user. When true, newly incoming notifications that would otherwise be suppressed should be presented as well.

Functions

Link copied to clipboard
abstract suspend fun setShowSuppressedNotifications(showSuppressedNotifications: Boolean)

Sets whether previously suppressed notifications (indicated by numberOfSuppressedNotifications) should be presented to the user. When set to true, newly incoming notifications that would otherwise be suppressed should be presented as well.