Package 

Class StreamNotificationBuilderInterceptors

    • Constructor Detail

      • StreamNotificationBuilderInterceptors

        StreamNotificationBuilderInterceptors()
    • 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.
      • 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 RingingState
        callId - An instance of StreamCallId representing the call identifier
        callDisplayName - The name of the caller to display in the notification
        shouldHaveContentIntent - 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.