Notification

Types

Link copied to clipboard
class Builder(val context: Context, var id: Int = generateNotificationId())

Creates a new instance of the Builder class.

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun destroy()

Removes the current instance from the notifications registry. It won't be able to be fetched from its id.

Link copied to clipboard

Returns the builder for this notification, for editing its contents.

Link copied to clipboard

Hides the notification

Link copied to clipboard

Shows the notification.

Link copied to clipboard

Updates some data of the notification, and refreshes it from the UI.

Properties

Link copied to clipboard
var android: Notification? = null

Returns android.app.Notification if the show method has been ran, or null if the notification is not ready.

Link copied to clipboard
var destroyed: Boolean = true

Stores whether or not the notification has been destroyed. Will be false until show is called.