SimpleChatNotificationListener

class SimpleChatNotificationListener(context: Context) : ChatNotificationListener

Simple chat notification listener handles how the incoming chat message will be shown and uses the SimpleChatConfiguration

Parameters

context

context

Constructors

Link copied to clipboard
fun SimpleChatNotificationListener(context: Context)

Create Simple chat notification listener

Functions

Link copied to clipboard
open override fun onCreateNotification(chatInfo: ChatInfo, notificationStyle: ChatNotificationStyle)

This method will be called when a notification is going to be displayed. The notification look&feel can be customized here.

Link copied to clipboard
open override fun onIncomingChat(    chat: IncomingChat,     isDnd: Boolean,     isScreenLocked: Boolean)

This method will be called when an incoming chat has been received. Here it is possible to launch the incoming chat as activity, notification or not display it at all.