NotificationConfiguration

class NotificationConfiguration(enabled: Boolean, @DrawableRes() resIcon: Int, title: String, text: String, tickerText: String?, sendButtonText: String?, @DrawableRes() resSendButtonIcon: Int, discardButtonText: String?, @DrawableRes() resDiscardButtonIcon: Int, channelName: String, channelDescription: String?, channelImportance: Int, sendWithCommentButtonText: String?, @DrawableRes() resSendWithCommentButtonIcon: Int, commentPrompt: String?, sendOnClick: Boolean) : Configuration

Author

F43nd1r

Since

15.09.2017

Constructors

NotificationConfiguration
Link copied to clipboard
fun NotificationConfiguration(enabled: Boolean = true, @DrawableRes() resIcon: Int = android.R.drawable.stat_sys_warning, title: String, text: String, tickerText: String? = null, sendButtonText: String? = null, @DrawableRes() resSendButtonIcon: Int = android.R.drawable.ic_menu_send, discardButtonText: String? = null, @DrawableRes() resDiscardButtonIcon: Int = android.R.drawable.ic_menu_delete, channelName: String, channelDescription: String? = null, channelImportance: Int = 4, sendWithCommentButtonText: String? = null, @DrawableRes() resSendWithCommentButtonIcon: Int = android.R.drawable.ic_menu_send, commentPrompt: String? = null, sendOnClick: Boolean = false)

Functions

enabled
Link copied to clipboard
open override fun enabled(): Boolean

Properties

channelDescription
Link copied to clipboard
val channelDescription: String? = null
notification channel description
channelImportance
Link copied to clipboard
val channelImportance: Int = 4
notification channel importance.
channelName
Link copied to clipboard
val channelName: String
notification channel name.
commentPrompt
Link copied to clipboard
val commentPrompt: String? = null
in-line comment prompt label.
discardButtonText
Link copied to clipboard
val discardButtonText: String? = null
discard button text shown in expanded viewdefaults to android.R.string.cancel
enabled
Link copied to clipboard
val enabled: Boolean = true
enables this plugin
resDiscardButtonIcon
Link copied to clipboard
val resDiscardButtonIcon: Int
discard button icon shown in collapsed and sometimes expanded view
resIcon
Link copied to clipboard
val resIcon: Int
icon of the notification
resSendButtonIcon
Link copied to clipboard
val resSendButtonIcon: Int
send button icon shown in collapsed and sometimes expanded view
resSendWithCommentButtonIcon
Link copied to clipboard
val resSendWithCommentButtonIcon: Int
in-line comment button icon.
sendButtonText
Link copied to clipboard
val sendButtonText: String? = null
send button text shown in expanded viewdefaults to android.R.string.ok
sendOnClick
Link copied to clipboard
val sendOnClick: Boolean = false
enable to send report even on normal click, not only on button click
sendWithCommentButtonText
Link copied to clipboard
val sendWithCommentButtonText: String? = null
in-line comment button text.
text
Link copied to clipboard
val text: String
text in the notification
tickerText
Link copied to clipboard
val tickerText: String? = null
ticker text for the notification
title
Link copied to clipboard
val title: String
title of the notification