NotificationInfo
class NotificationInfo @JvmOverloads constructor(val notificationId: Short, val channelId: String, val channelName: Int, val channelDescription: Int, val channelShowBadge: Boolean = false, val channelImportanceLow: Boolean = false)(source)
Holder for Foreground Service Notification and NotificationChannel configuration info used to instantiate Factory. Is validated upon invocation of TorServiceConfig.Foreground.Companion.Builder.
Constructors
Properties
Link copied to clipboard
The id of the string resource to resolve to utilize for the NotificationChannel description.
Link copied to clipboard
If true, NotificationManager.IMPORTANCE_LOW will be used for NotificationChannel.setImportance.
Link copied to clipboard
The id of the string resource to resolve to utilize for the NotificationChannel name.
Link copied to clipboard
The value to utilize for NotificationChannel.setShowBadge.
Link copied to clipboard
The integer value to utilize when posting the Notification to NotificationManager.
Functions
Link copied to clipboard
Called from TorServiceConfig.Foreground.Companion.Builder to resolve string resources and validate parameters for correctness.