-
public class StreamNotificationUpdateInterceptorsInterceptor for notification updates.
-
-
Constructor Summary
Constructors Constructor Description StreamNotificationUpdateInterceptors()
-
Method Summary
Modifier and Type Method Description NotificationCompat.BuilderonUpdateOngoingCallNotification(NotificationCompat.Builder builder, String callDisplayName, Call call)Intercept the notification builder and modify it before it is posted. NotificationCompat.BuilderonUpdateOngoingCallMediaNotification(NotificationCompat.Builder builder, String callDisplayName, Call call)Intercept the notification builder and modify it before it is posted. NotificationCompat.BuilderonUpdateOutgoingCallNotification(NotificationCompat.Builder builder, String callDisplayName, Call call)Intercept the notification builder and modify it before it is posted. NotificationCompat.BuilderonUpdateIncomingCallNotification(NotificationCompat.Builder builder, String callDisplayName, Call call)Intercept the notification builder and modify it before it is posted. MediaMetadataCompat.BuilderonUpdateMediaNotificationMetadata(MediaMetadataCompat.Builder builder, Call call, String callDisplayName)Intercept the media notification metadata builder and modify it before it is posted for updating. PlaybackStateCompat.BuilderonUpdateMediaNotificationPlaybackState(PlaybackStateCompat.Builder builder, Call call, String callDisplayName)Intercept the media notification playback state builder and modify it before it is posted for updating. MediaSessionCompatonUpdateMediaSessionCompat(Application application, String channelId)Intercept the media session creation and modify it before it is posted. -
-
Method Detail
-
onUpdateOngoingCallNotification
NotificationCompat.Builder onUpdateOngoingCallNotification(NotificationCompat.Builder builder, String callDisplayName, Call call)
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.call- the stream call
-
onUpdateOngoingCallMediaNotification
NotificationCompat.Builder onUpdateOngoingCallMediaNotification(NotificationCompat.Builder builder, String callDisplayName, Call call)
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.call- the stream call
-
onUpdateOutgoingCallNotification
NotificationCompat.Builder onUpdateOutgoingCallNotification(NotificationCompat.Builder builder, String callDisplayName, Call call)
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 notificationcall- the stream call
-
onUpdateIncomingCallNotification
NotificationCompat.Builder onUpdateIncomingCallNotification(NotificationCompat.Builder builder, String callDisplayName, Call call)
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 notificationcall- the stream call
-
onUpdateMediaNotificationMetadata
MediaMetadataCompat.Builder onUpdateMediaNotificationMetadata(MediaMetadataCompat.Builder builder, Call call, String callDisplayName)
Intercept the media notification metadata builder and modify it before it is posted for updating.
- Parameters:
builder- The media metadata builder.call- The Stream call object.callDisplayName- The name of the caller to display in the notification.
-
onUpdateMediaNotificationPlaybackState
PlaybackStateCompat.Builder onUpdateMediaNotificationPlaybackState(PlaybackStateCompat.Builder builder, Call call, String callDisplayName)
Intercept the media notification playback state builder and modify it before it is posted for updating.
- Parameters:
builder- The media playback state builder.call- The Stream call object.callDisplayName- The name of the caller to display in the notification.
-
onUpdateMediaSessionCompat
MediaSessionCompat onUpdateMediaSessionCompat(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.
-
-
-
-