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)

Constructors

Link copied to clipboard
constructor(id: String, name: String, description: String = "", importance: Int = 3)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard