notificationBuilder

fun Context.notificationBuilder(channelId: String, block: NotificationCompat.Builder.() -> Unit? = null, color: Int = Color.parseColor("#B39DDB")): NotificationCompat.Builder

Creates and returns a NotificationCompat.Builder with the given channel ID and optional configuration.

Return

A configured NotificationCompat.Builder instance.

Parameters

channelId

The ID of the notification channel.

block

An optional lambda to configure the NotificationCompat.Builder.

color

The color to be used for the notification. Defaults to "#B39DDB".