NotificationUtils

class NotificationUtils(service: Service, channelId: String, notificationId: Int)

Helper class to create and manage notifications. Only use for screen recording service that is why the permission error is suppressed.

Constructors

Link copied to clipboard
constructor(service: Service, channelId: String, notificationId: Int)

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
fun createNotification(@StringRes titleResourceId: Int, @StringRes contentResourceId: Int, @DrawableRes iconResourceId: Int): Notification
fun createNotification(title: String, content: String? = null, @DrawableRes iconResourceId: Int): Notification
Link copied to clipboard
fun createNotificationChannel(@StringRes nameResourceId: Int, @StringRes descriptionResourceId: Int)
Link copied to clipboard
fun notify(notification: Notification)