NotificationChannelData

class NotificationChannelData(val id: String = "DEFAULT_NOTIFICATION_CHANNEL_ID", val name: String = "General", val description: String = "", val soundUri: String? = null)

By default Notification channel with below configuration is created but you can change it

Parameters

id

for General(or Miscellaneous or Other) notifications. Default value: "DEFAULT_NOTIFICATION_CHANNEL_ID"

name

this is the title that is shown on app notification channels. Default value is "General" Usually it is either General or Miscellaneous or Miscellaneous in most apps

description

Notification description

soundUri

Custom Notification sound, uri should be converted to String.

Constructors

Link copied to clipboard
constructor(id: String = "DEFAULT_NOTIFICATION_CHANNEL_ID", name: String = "General", description: String = "", soundUri: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
val soundUri: String? = null