Notification

data class Notification(val packageName: String, val title: String?, val text: String?, val actions: List<String>, val clearable: Boolean, val postedAt: Instant)(source)

An active notification (Device.notifications, Device.awaitNotification): the packageName that posted it, its title and text (the android.title / android.text extras, null when it has none), the titles of its action buttons (actions, what Device.openNotification's action names), whether a swipe dismisses it (clearable: false for an ongoing one, such as a foreground service's), and when it was posted.

Constructors

Link copied to clipboard
constructor(packageName: String, title: String?, text: String?, actions: List<String>, clearable: Boolean, postedAt: Instant)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val text: String?
Link copied to clipboard