createChannel

@RequiresApi(value = 26)
fun NotificationManager.createChannel(channelId: String, channelName: String)

Creates a notification channel with the given ID and name.

Parameters

channelId

The ID of the notification channel to be created.

channelName

The name of the notification channel to be created.