library / dev.bmcreations.scrcast.recorder.notification / NotificationProvider
NotificationProvider¶
abstract class NotificationProvider
Provider contract for managing the recording notification used by ScrCast
Constructors¶
Name | Summary |
---|---|
<init> | Provider contract for managing the recording notification used by ScrCastNotificationProvider(context: Context ) |
Properties¶
Name | Summary |
---|---|
notificationManager | NotificationManager instantiated via the provided Context, available to subclasses for NotificationManager.notify and other purposesval notificationManager: NotificationManager |
Functions¶
Name | Summary |
---|---|
createNotificationChannel | Required method for subclasses to define their own NotificationChannelabstract fun createNotificationChannel(): Unit |
get | Required method for subclasses to provide their Notification to the recording service.abstract fun get(state: RecordingState ): Notification |
getChannelId | Required method for subclasses to define their NotificationChannel unique identifier.abstract fun getChannelId(): String |
getNotificationId | Required method for subclasses to define their Notification unique identifier, queried by update to update the notification on state changes if required.abstract fun getNotificationId(): Int |
update | Updates the current notification based on the new RecordingState.open fun update(state: RecordingState ): Unit |