NotificationConfig

data class NotificationConfig(val id: Int, val channelId: String, val title: String, val body: String, val smallIcon: Int, val priority: Int = NotificationCompat.PRIORITY_DEFAULT, val autoCancel: Boolean = true, val contentIntent: PendingIntent? = null, val ongoing: Boolean = false)(source)

Describes a local notification to be posted to the system tray.

Provides semantic presets that align with standard UI states:

Example usage:

val config = NotificationConfig(
id = 101,
channelId = "updates",
title = "Update available",
body = "A new version of Kindling is ready to install.",
smallIcon = R.drawable.ic_notification,
autoCancel = true
)
notificationHelper.post(config)

Constructors

Link copied to clipboard
constructor(id: Int, channelId: String, title: String, body: String, smallIcon: Int, priority: Int = NotificationCompat.PRIORITY_DEFAULT, autoCancel: Boolean = true, contentIntent: PendingIntent? = null, ongoing: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard