SimpleCallNotificationListener

class SimpleCallNotificationListener(context: Context) : CallNotificationListener

Simple call notification listener handles how the incoming calls will be shown and uses the SimpleCallConfiguration

Parameters

context

context

Constructors

Link copied to clipboard
fun SimpleCallNotificationListener(context: Context)

Create Simple call notification listener

Functions

Link copied to clipboard
open override fun onCreateNotification(    callInfo: CallInfo,     type: CallNotificationType,     notificationStyle: CallNotificationStyle)

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 onIncomingCall(    call: IncomingCall,     isDnd: Boolean,     isScreenLocked: Boolean)

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