SLRCustomNotification

open class SLRCustomNotification(val title: String? = null, val description: String? = null, @LayoutRes val layoutId: Int? = null, @IdRes val actionId: Int? = null, @ColorRes val iconBackgroundColor: Int? = null, val iconUrl: String? = null) : NotificationBuilder

Extendable class. Used to send custom notifications to the StreamLayer SDK overlay.

Constructors

Link copied to clipboard
constructor(title: String? = null, description: String? = null, @LayoutRes layoutId: Int? = null, @IdRes actionId: Int? = null, @ColorRes iconBackgroundColor: Int? = null, iconUrl: String? = null)

Properties

Link copied to clipboard
open override val actionId: Int? = null

navigation destination in the graph, must be added in the addCustomOverlays(overlay: Array) method

Link copied to clipboard
open override val description: String? = null

of notification

Link copied to clipboard
open override val iconBackgroundColor: Int? = null

background of icon color

Link copied to clipboard
open override val iconUrl: String? = null

custom icon

Link copied to clipboard
open override val layoutId: Int? = null

when not provided default layout notification is used R.layout.slr_item_notification

Link copied to clipboard
open override val title: String? = null

of notification

Functions

Link copied to clipboard
open fun bindView(view: View)