getIncomingCallNotification

open override fun getIncomingCallNotification(fullScreenPendingIntent: PendingIntent, acceptCallPendingIntent: PendingIntent, rejectCallPendingIntent: PendingIntent, callerName: String?, shouldHaveContentIntent: Boolean, payload: Map<String, Any?>): Notification

Customize the notification when you receive a push notification for ringing call with type RingingState.Incoming

This method is invoked only when the incoming ringtone owner is IncomingRingtoneOwner.Legacy. When the incoming ringtone owner is IncomingRingtoneOwner.Notification, StreamDefaultNotificationHandler.getNotificationOwnedIncomingCallNotification is invoked instead.

Return

A Notification object customized for the incoming call.

Parameters

fullScreenPendingIntent

A high-priority intent that launches an activity in full-screen mode, bypassing the lock screen.

acceptCallPendingIntent

The intent triggered when accepting the call from the notification.

rejectCallPendingIntent

The intent triggered when rejecting the call from the notification.

callerName

The name of the caller to display in the notification

shouldHaveContentIntent

If true, clicking the notification triggers fullScreenPendingIntent.