PushNotificationsConfiguration

data class PushNotificationsConfiguration @JvmOverloads constructor(val pushEnabled: Boolean = true, var accentColor: Int? = null, var channelName: String = DEFAULT_NOTIFICATION_CHANNEL_NAME, var channelDescription: String = DEFAULT_NOTIFICATION_CHANNEL_DESCRIPTION, var channelId: String = DEFAULT_NOTIFICATION_CHANNEL_ID, @DrawableRes var pushIconResId: Int? = null)

Configuration for displaying push notifications

Constructors

Link copied to clipboard
constructor(pushEnabled: Boolean = true, accentColor: Int? = null, channelName: String = DEFAULT_NOTIFICATION_CHANNEL_NAME, channelDescription: String = DEFAULT_NOTIFICATION_CHANNEL_DESCRIPTION, channelId: String = DEFAULT_NOTIFICATION_CHANNEL_ID, @DrawableRes pushIconResId: Int? = null)

Properties

Link copied to clipboard

Accent color of push notification icon and buttons. A color value, not resource id is expected here, e.g. context.resources.getColor(R.color.something)

Link copied to clipboard

Channel description for push notifications. Only for API level 26+.

Link copied to clipboard

Channel ID for push notifications. Only for API level 26+.

Link copied to clipboard

Channel name for push notifications. Only for API level 26+.

Link copied to clipboard
val pushEnabled: Boolean = true

Whether push notifications handling is enabled or not

Link copied to clipboard

Icon to be showed in push notifications. A drawable resource id expected.