onBuildIncomingCallNotification
open fun onBuildIncomingCallNotification(builder: NotificationCompat.Builder, fullScreenPendingIntent: PendingIntent, acceptCallPendingIntent: PendingIntent, rejectCallPendingIntent: PendingIntent, callerName: String?, shouldHaveContentIntent: Boolean): NotificationCompat.Builder
Deprecated
Use the one with payload: Map<String, Any?>
Replace with
onBuildIncomingCallNotification(builder,fullScreenPendingIntent,acceptCallPendingIntent,rejectCallPendingIntent,callerName,shouldHaveContentIntent,emptyMap())
Content copied to clipboard
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.