-
public class StreamNotificationBuilderInterceptors extends StreamNotificationBuilderInterceptorsWithPayload
Interceptor for notification builders.
-
-
Constructor Summary
Constructors Constructor Description StreamNotificationBuilderInterceptors()
-
Method Summary
Modifier and Type Method Description NotificationCompat.BuilderonBuildIncomingCallNotification(NotificationCompat.Builder builder, PendingIntent fullScreenPendingIntent, PendingIntent acceptCallPendingIntent, PendingIntent rejectCallPendingIntent, String callerName, Boolean shouldHaveContentIntent)Intercept the notification builder and modify it before it is posted. NotificationCompat.BuilderonBuildOngoingCallNotification(NotificationCompat.Builder builder, StreamCallId callId, String callDisplayName, Boolean isOutgoingCall, Integer remoteParticipantCount)Intercept the notification builder and modify it before it is posted. NotificationCompat.BuilderonBuildOngoingCallMediaNotification(NotificationCompat.Builder builder, StreamCallId callId)NotificationCompat.BuilderonBuildMissedCallNotification(NotificationCompat.Builder builder, String callDisplayName)Intercept the notification builder and modify it before it is posted. NotificationCompat.BuilderonBuildOutgoingCallNotification(NotificationCompat.Builder builder, RingingState ringingState, StreamCallId callId, String callDisplayName, Boolean shouldHaveContentIntent)Intercept the notification builder and modify it before it is posted. MediaMetadataCompat.BuilderonBuildMediaNotificationMetadata(MediaMetadataCompat.Builder builder, StreamCallId callId)Intercept the notification builder and modify the media metadata before it is posted. PlaybackStateCompat.BuilderonBuildMediaNotificationPlaybackState(PlaybackStateCompat.Builder builder, StreamCallId callId)Intercept the notification builder and modify the media playback state before it is posted. NotificationCompat.MediaStyleonBuildMediaNotificationStyle(NotificationCompat.MediaStyle style, StreamCallId callId)Intercept the notification builder and modify the media style before it is posted. MediaSessionCompatonCreateMediaSessionCompat(Application application, String channelId)Intercept the media session creation and modify it before it is posted. -
Methods inherited from class io.getstream.video.android.core.notifications.handlers.StreamNotificationBuilderInterceptors
onBuildIncomingCallNotification, onBuildMediaNotificationStyle, onBuildMissedCallNotification, onBuildOngoingCallMediaNotification, onBuildOngoingCallNotification, onBuildOutgoingCallNotification -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onBuildIncomingCallNotification
@Deprecated(message = Use the one with payload: Map<String, Any?>, replaceWith = @ReplaceWith(imports = {}, expression = onBuildIncomingCallNotification(builder,fullScreenPendingIntent,acceptCallPendingIntent,rejectCallPendingIntent,callerName,shouldHaveContentIntent,emptyMap())), level = DeprecationLevel.WARNING) NotificationCompat.Builder onBuildIncomingCallNotification(NotificationCompat.Builder builder, PendingIntent fullScreenPendingIntent, PendingIntent acceptCallPendingIntent, PendingIntent rejectCallPendingIntent, String callerName, Boolean shouldHaveContentIntent)
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
@Deprecated(message = Use the one with payload: Map<String, Any?>, replaceWith = @ReplaceWith(imports = {}, expression = onBuildOngoingCallNotification(builder,callId,callDisplayName,isOutgoingCall,remoteParticipantCount,emptyMap())), level = DeprecationLevel.WARNING) NotificationCompat.Builder onBuildOngoingCallNotification(NotificationCompat.Builder builder, StreamCallId callId, String callDisplayName, Boolean isOutgoingCall, Integer remoteParticipantCount)
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
@Deprecated(message = Use the one with payload: Map<String, Any?>, replaceWith = @ReplaceWith(imports = {}, expression = onBuildOngoingCallMediaNotification(builder,callId,emptyMap())), level = DeprecationLevel.WARNING) NotificationCompat.Builder onBuildOngoingCallMediaNotification(NotificationCompat.Builder builder, StreamCallId callId)
-
onBuildMissedCallNotification
@Deprecated(message = Use the one with payload: Map<String, Any?>, replaceWith = @ReplaceWith(imports = {}, expression = onBuildMissedCallNotification(builder,callDisplayName,emptyMap())), level = DeprecationLevel.WARNING) NotificationCompat.Builder onBuildMissedCallNotification(NotificationCompat.Builder builder, String callDisplayName)
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
@Deprecated(message = Use the one with payload: Map<String, Any?>, replaceWith = @ReplaceWith(imports = {}, expression = onBuildOutgoingCallNotification(builder,ringingState,callId,callDisplayName,shouldHaveContentIntent,emptyMap())), level = DeprecationLevel.WARNING) NotificationCompat.Builder onBuildOutgoingCallNotification(NotificationCompat.Builder builder, RingingState ringingState, StreamCallId callId, String callDisplayName, Boolean shouldHaveContentIntent)
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
-
onBuildMediaNotificationMetadata
MediaMetadataCompat.Builder onBuildMediaNotificationMetadata(MediaMetadataCompat.Builder builder, StreamCallId callId)
Intercept the notification builder and modify the media metadata before it is posted.
- Parameters:
builder- The media metadata builder.callId- An instance of StreamCallId representing the call identifier
-
onBuildMediaNotificationPlaybackState
PlaybackStateCompat.Builder onBuildMediaNotificationPlaybackState(PlaybackStateCompat.Builder builder, StreamCallId callId)
Intercept the notification builder and modify the media playback state before it is posted.
- Parameters:
builder- The media playback state builder.callId- An instance of StreamCallId representing the call identifier
-
onBuildMediaNotificationStyle
NotificationCompat.MediaStyle onBuildMediaNotificationStyle(NotificationCompat.MediaStyle style, StreamCallId callId)
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
-
onCreateMediaSessionCompat
MediaSessionCompat onCreateMediaSessionCompat(Application application, String channelId)
Intercept the media session creation and modify it before it is posted.
- Parameters:
application- The application context.channelId- The channel id.
-
-
-
-