createNotificationChannel

fun createNotificationChannel(channelId: String, channelName: String, importance: Int = 4, description: String? = null, soundResName: String? = null): String?

Create a notification channel (Android 8+; no-op on older API levels).

Return

the channel id when created or already exists; null on pre-O or when the OS call failed.