NotificationUtil

Functions

Link copied to clipboard
fun channelExists(context: Context, id: String): Boolean
Link copied to clipboard
fun createChannel(context: Context, channelName: String, channelId: String, importance: Int, sound: Boolean = true, vibrate: Boolean = true, lights: Boolean = true): Boolean
Link copied to clipboard
fun createChannelIfNecessary(context: Context, channelName: String, channelId: String, importance: Int = NotificationManagerCompat.IMPORTANCE_HIGH, sound: Boolean = true, vibrate: Boolean = true, lights: Boolean = true): Boolean
Link copied to clipboard
Link copied to clipboard
fun deleteChannel(context: Context, channelId: String)
Link copied to clipboard
fun initChannel(context: Context, channelId: String, channelName: String, importance: Int = NotificationManager.IMPORTANCE_LOW)
Link copied to clipboard
fun openSettings(context: Context)
Link copied to clipboard