createNotification
fun Context.createNotification(channelId: String, @StringRes title: Int, @StringRes content: Int, icon: Int, pendingIntent: PendingIntent? = null): Notification(source)
fun Context.createNotification(channelId: String, title: String, content: String, icon: Int, pendingIntent: PendingIntent? = null): Notification(source)
Creates a notification using the specified channel ID, title, content, and icon.
Return
The notification object.
Parameters
channelId
The ID of the notification channel.
title
The title of the notification.
content
The content of the notification.
icon
The icon of the notification.