createNotificationChannel

fun Context.createNotificationChannel(channelId: String, @StringRes channelName: Int, @StringRes channelDescription: Int, importance: Int)

Creates a notification channel with the specified channel ID, name, description, and importance.

Parameters

channelId

The ID of the notification channel.

channelName

The name of the notification channel.

channelDescription

The description of the notification channel.

importance

The importance level of the notification channel.