onBuildIncomingCallNotification

open fun onBuildIncomingCallNotification(builder: NotificationCompat.Builder, fullScreenPendingIntent: PendingIntent, acceptCallPendingIntent: PendingIntent, rejectCallPendingIntent: PendingIntent, callerName: String?, shouldHaveContentIntent: Boolean, payload: Map<String, Any?>): NotificationCompat.Builder

Intercept the notification builder and modify it before it is posted.

Parameters

builder

The notification builder.

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.