-
public class StreamNotificationBuilderInterceptorsWithPayload
-
-
Constructor Summary
Constructors Constructor Description StreamNotificationBuilderInterceptorsWithPayload()
-
Method Summary
Modifier and Type Method Description NotificationCompat.BuilderonBuildIncomingCallNotification(NotificationCompat.Builder builder, PendingIntent fullScreenPendingIntent, PendingIntent acceptCallPendingIntent, PendingIntent rejectCallPendingIntent, String callerName, Boolean shouldHaveContentIntent, Map<String, Object> payload)Intercept the notification builder and modify it before it is posted. NotificationCompat.BuilderonBuildOngoingCallNotification(NotificationCompat.Builder builder, StreamCallId callId, String callDisplayName, Boolean isOutgoingCall, Integer remoteParticipantCount, Map<String, Object> payload)Intercept the notification builder and modify it before it is posted. NotificationCompat.BuilderonBuildOngoingCallMediaNotification(NotificationCompat.Builder builder, StreamCallId callId, Map<String, Object> payload)NotificationCompat.BuilderonBuildMissedCallNotification(NotificationCompat.Builder builder, String callDisplayName, Map<String, Object> payload)Intercept the notification builder and modify it before it is posted. NotificationCompat.BuilderonBuildOutgoingCallNotification(NotificationCompat.Builder builder, RingingState ringingState, StreamCallId callId, String callDisplayName, Boolean shouldHaveContentIntent, Map<String, Object> payload)Intercept the notification builder and modify it before it is posted. NotificationCompat.MediaStyleonBuildMediaNotificationStyle(NotificationCompat.MediaStyle style, StreamCallId callId, Map<String, Object> payload)Intercept the notification builder and modify the media style before it is posted. -
-
Method Detail
-
onBuildIncomingCallNotification
NotificationCompat.Builder onBuildIncomingCallNotification(NotificationCompat.Builder builder, PendingIntent fullScreenPendingIntent, PendingIntent acceptCallPendingIntent, PendingIntent rejectCallPendingIntent, String callerName, Boolean shouldHaveContentIntent, Map<String, Object> payload)
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.
-
onBuildOngoingCallNotification
NotificationCompat.Builder onBuildOngoingCallNotification(NotificationCompat.Builder builder, StreamCallId callId, String callDisplayName, Boolean isOutgoingCall, Integer remoteParticipantCount, Map<String, Object> payload)
Intercept the notification builder and modify it before it is posted.
- Parameters:
builder- The notification builder.callDisplayName- The name of the caller to display in the notification.isOutgoingCall- True if the call is outgoing, false if it is an active call.remoteParticipantCount- Count of remote participant.
-
onBuildOngoingCallMediaNotification
NotificationCompat.Builder onBuildOngoingCallMediaNotification(NotificationCompat.Builder builder, StreamCallId callId, Map<String, Object> payload)
-
onBuildMissedCallNotification
NotificationCompat.Builder onBuildMissedCallNotification(NotificationCompat.Builder builder, String callDisplayName, Map<String, Object> payload)
Intercept the notification builder and modify it before it is posted.
- Parameters:
builder- The notification builder.callDisplayName- The name of the caller to display in the notification.
-
onBuildOutgoingCallNotification
NotificationCompat.Builder onBuildOutgoingCallNotification(NotificationCompat.Builder builder, RingingState ringingState, StreamCallId callId, String callDisplayName, Boolean shouldHaveContentIntent, Map<String, Object> payload)
Intercept the notification builder and modify it before it is posted.
- Parameters:
builder- The notification builder.ringingState- The current state of ringing call, represented by RingingStatecallId- An instance of StreamCallId representing the call identifiercallDisplayName- The name of the caller to display in the notificationshouldHaveContentIntent- If set to true then it will launch a screen when the user will click on the notification
-
onBuildMediaNotificationStyle
NotificationCompat.MediaStyle onBuildMediaNotificationStyle(NotificationCompat.MediaStyle style, StreamCallId callId, Map<String, Object> payload)
Intercept the notification builder and modify the media style before it is posted.
- Parameters:
style- The media style.callId- An instance of StreamCallId representing the call identifier
-
-
-
-