Skip to content

library / dev.bmcreations.scrcast.config / NotificationConfig

NotificationConfig

data class NotificationConfig :Parcelable

An immutable data class representing configuration options for the notification presented from the foreground service.

Constructors

Name Summary
<init> An immutable data class representing configuration options for the notification presented from the foreground service.NotificationConfig(title:String= "Recording screen", description:String= "", icon:Bitmap? = null, id:Int= 101, showStop:Boolean= false, showPause:Boolean= false, showTimer:Boolean= false, useMediaStyle:Boolean= false, accentColor:Int= R.color.recorder_notification_background, colorAsBackground:Boolean= true, channel:ChannelConfig= ChannelConfig())

Properties

Name Summary
accentColor The accent color resource for the notificationval accentColor:Int
channel val channel:ChannelConfig
colorAsBackground When enabled the notification will use accentColor as the background.val colorAsBackground:Boolean
description The message/description displayed in the notificationval description:String
icon The icon displayed in the notificationval icon:Bitmap?
id The unique identifier for the displayed notificationval id:Int
showPause Whether to add a notification action for pause/resume of the current recording (visible action is dependent on the state of the current recording session).val showPause:Boolean
showStop Whether to add a notification action for stopping the current recording.val showStop:Boolean
showTimer Whether to add a the current recording time to the notification via a chronometer.val showTimer:Boolean
title The title displayed in the notificationval title:String
useMediaStyle Whether to have pause/resume and stop actions show as media style iconsval useMediaStyle:Boolean