NotificationsUtil

class NotificationsUtil(context: Context, channelName: String = "gi", channelID: String, channelDescription: String = "", enableCustomSound: Boolean = false, @IdRes rawNotificationSound: Int = -1)

Constructors

Link copied to clipboard
constructor(context: Context, channelName: String = "gi", channelID: String, channelDescription: String = "", enableCustomSound: Boolean = false, @IdRes rawNotificationSound: Int = -1)

Functions

Link copied to clipboard
fun buildNotification(message: String, title: String, @IdRes notificationDrawable: Int): Notification?
Link copied to clipboard
fun createExpandableNotification(id: String, message: String, title: String, @IdRes notificationDrawable: Int): Notification?
fun createExpandableNotificationWithPendingIntent(id: String, message: String, title: String, @IdRes notificationDrawable: Int, pendingIntent: PendingIntent): Notification?
Link copied to clipboard
fun createNotification(id: String, message: String, title: String, @IdRes notificationDrawable: Int): Notification?
Link copied to clipboard
fun createNotificationWithPendingIntent(id: String, message: String, title: String, @IdRes notificationDrawable: Int, pendingIntent: PendingIntent): Notification?