NotificationChannelConfig
data class NotificationChannelConfig(val id: String, val name: String, val description: String = "", val importance: Int = 3)(source)
Describes a notification channel to be registered with the system.
Notification channels are required starting from Android O (API 26).
Example usage:
val channel = NotificationChannelConfig(
id = "messages",
name = "Messages",
description = "Notifications for new chat messages",
importance = NotificationManager.IMPORTANCE_HIGH
)
notificationHelper.registerChannel(channel)Content copied to clipboard