RichUtils / pyxis.uzuki.live.richutilskt.utils / android.content.Context / createNotificationChannel

createNotificationChannel

@JvmOverloads fun Context.createNotificationChannel(id: String = "", name: String = "", description: String = "", importance: Int = NotificationManager.IMPORTANCE_HIGH): String

create Notification Channel for Android Oreo and above. every options is optional, if you doesn't matter whatever value, leave them no parameters.

Parameters

id - channel id, if this value is not present, it will be package name

name - channel name, if this value is not present, it will be app name

description - channel description, if this value is not present, it will be app name

importance - importance of channel, if this value is not present, it will be IMPORTANCE_LOW

Return
generated channel id