-
public interface StreamNotificationProviderWithPayload
-
-
Method Summary
Modifier and Type Method Description abstract NotificationgetIncomingCallNotification(PendingIntent fullScreenPendingIntent, PendingIntent acceptCallPendingIntent, PendingIntent rejectCallPendingIntent, String callerName, Boolean shouldHaveContentIntent, Map<String, Object> payload)Customize the notification when you receive a push notification for ringing call with type RingingState.IncomingThis method is invoked only when the incoming ringtone owner is IncomingRingtoneOwner.Legacy. abstract NotificationgetOngoingCallNotification(StreamCallId callId, String callDisplayName, Boolean isOutgoingCall, Integer remoteParticipantCount, Map<String, Object> payload)Customize the notification when you receive a push notification for ringing call with type RingingState.Outgoing and RingingState.Active abstract NotificationgetRingingCallNotification(RingingState ringingState, StreamCallId callId, String callDisplayName, Boolean shouldHaveContentIntent, Map<String, Object> payload)Customize the notification when you receive a push notification for ringing call abstract NotificationgetMissedCallNotification(StreamCallId callId, String callDisplayName, Map<String, Object> payload)Customize the notification when you receive a push notification for Missed Call -
-
Method Detail
-
getIncomingCallNotification
abstract Notification getIncomingCallNotification(PendingIntent fullScreenPendingIntent, PendingIntent acceptCallPendingIntent, PendingIntent rejectCallPendingIntent, String callerName, Boolean shouldHaveContentIntent, Map<String, Object> payload)
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.
- 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 notificationshouldHaveContentIntent- If true, clicking the notification triggers fullScreenPendingIntent.
-
getOngoingCallNotification
abstract Notification getOngoingCallNotification(StreamCallId callId, String callDisplayName, Boolean isOutgoingCall, Integer remoteParticipantCount, Map<String, Object> payload)
Customize the notification when you receive a push notification for ringing call with type RingingState.Outgoing and RingingState.Active
- Parameters:
callId- An instance of StreamCallId representing the call identifiercallDisplayName- The name of the caller to display in the notificationisOutgoingCall- True if the call is outgoing RingingState.Outgoing, false if it is an active call RingingState.Active.remoteParticipantCount- Count of remote participant
-
getRingingCallNotification
abstract Notification getRingingCallNotification(RingingState ringingState, StreamCallId callId, String callDisplayName, Boolean shouldHaveContentIntent, Map<String, Object> payload)
Customize the notification when you receive a push notification for ringing call
- Parameters:
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
-
getMissedCallNotification
abstract Notification getMissedCallNotification(StreamCallId callId, String callDisplayName, Map<String, Object> payload)
Customize the notification when you receive a push notification for Missed Call
- Parameters:
callId- An instance of StreamCallId representing the call identifiercallDisplayName- The name of the caller to display in the notification
-
-
-
-