You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AND-207] Simplify notification overriding for customization (#1265)
* 1. Expose the PendingIntent getters for different types of calls as public APIs.
2. Mark intentResolver with public visibility
* change method visibility to open for enhanced notification customization
Updated visibility of private and default methods to open to allow further extension and customization of notifications.
This change provides greater flexibility for users to override and tailor notification behavior according to their specific needs.
---------
Co-authored-by: Aleksandar Apostolov <apostolov.alexandar@gmail.com>
Copy file name to clipboardExpand all lines: stream-video-android-core/api/stream-video-android-core.api
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4335,16 +4335,29 @@ public class io/getstream/video/android/core/notifications/DefaultNotificationHa
4335
4335
public static final field Companion Lio/getstream/video/android/core/notifications/DefaultNotificationHandler$Companion;
4336
4336
public fun <init> (Landroid/app/Application;Lio/getstream/android/push/permissions/NotificationPermissionHandler;ZI)V
4337
4337
public synthetic fun <init> (Landroid/app/Application;Lio/getstream/android/push/permissions/NotificationPermissionHandler;ZIILkotlin/jvm/internal/DefaultConstructorMarker;)V
4338
+
public fun addCallActions (Landroidx/core/app/NotificationCompat$Builder;Landroid/app/PendingIntent;Landroid/app/PendingIntent;Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Builder;
4339
+
public fun addHangUpAction (Landroidx/core/app/NotificationCompat$Builder;Landroid/app/PendingIntent;Ljava/lang/String;I)Landroidx/core/app/NotificationCompat$Builder;
4340
+
public fun createIncomingCallChannel (Ljava/lang/String;Z)V
4341
+
public fun createOnGoingChannel (Ljava/lang/String;)V
4342
+
public fun getAcceptAction (Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Action;
4338
4343
public fun getChannelDescription ()Ljava/lang/String;
4339
4344
public fun getChannelId ()Ljava/lang/String;
4340
4345
public fun getChannelName ()Ljava/lang/String;
4341
4346
public final fun getHideRingingNotificationInForeground ()Z
4347
+
public fun getIncomingCallNotification (Landroid/app/PendingIntent;Landroid/app/PendingIntent;Landroid/app/PendingIntent;Ljava/lang/String;Z)Landroid/app/Notification;
4348
+
public final fun getIntentResolver ()Lio/getstream/video/android/core/notifications/DefaultStreamIntentResolver;
4349
+
public fun getLeaveAction (Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Action;
4350
+
public fun getNotification (Lkotlin/jvm/functions/Function1;)Landroid/app/Notification;
4342
4351
public final fun getNotificationIconRes ()I
4343
4352
protected final fun getNotificationManager ()Landroidx/core/app/NotificationManagerCompat;
4344
4353
public fun getNotificationUpdates (Lkotlinx/coroutines/CoroutineScope;Lio/getstream/video/android/core/Call;Lio/getstream/video/android/model/User;Lkotlin/jvm/functions/Function1;)V
4345
4354
public fun getOngoingCallNotification (Lio/getstream/video/android/model/StreamCallId;Ljava/lang/String;ZI)Landroid/app/Notification;
4355
+
public fun getRejectAction (Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Action;
4346
4356
public fun getRingingCallNotification (Lio/getstream/video/android/core/RingingState;Lio/getstream/video/android/model/StreamCallId;Ljava/lang/String;Z)Landroid/app/Notification;
4347
4357
public fun getSettingUpCallNotification ()Landroid/app/Notification;
4358
+
public fun isInForeground ()Z
4359
+
public fun maybeCreateChannel (Ljava/lang/String;Landroid/content/Context;Lkotlin/jvm/functions/Function1;)V
4360
+
public static synthetic fun maybeCreateChannel$default (Lio/getstream/video/android/core/notifications/DefaultNotificationHandler;Ljava/lang/String;Landroid/content/Context;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
4348
4361
public fun onLiveCall (Lio/getstream/video/android/model/StreamCallId;Ljava/lang/String;)V
4349
4362
public fun onMissedCall (Lio/getstream/video/android/model/StreamCallId;Ljava/lang/String;)V
4350
4363
public fun onNotification (Lio/getstream/video/android/model/StreamCallId;Ljava/lang/String;)V
@@ -4353,11 +4366,32 @@ public class io/getstream/video/android/core/notifications/DefaultNotificationHa
4353
4366
public fun onPermissionRationale ()V
4354
4367
public fun onPermissionRequested ()V
4355
4368
public fun onRingingCall (Lio/getstream/video/android/model/StreamCallId;Ljava/lang/String;)V
4369
+
public fun showLiveCallNotification (Landroid/app/PendingIntent;Ljava/lang/String;I)V
4370
+
public fun showMissedCallNotification (Landroid/app/PendingIntent;Ljava/lang/String;I)V
4371
+
public fun showNotificationCallNotification (Landroid/app/PendingIntent;Ljava/lang/String;I)V
4356
4372
}
4357
4373
4358
4374
public final class io/getstream/video/android/core/notifications/DefaultNotificationHandler$Companion {
4359
4375
}
4360
4376
4377
+
public final class io/getstream/video/android/core/notifications/DefaultStreamIntentResolver {
4378
+
public fun <init> (Landroid/content/Context;)V
4379
+
public final fun getContext ()Landroid/content/Context;
4380
+
public final fun getDefaultPendingIntent ()Landroid/app/PendingIntent;
4381
+
public final fun searchAcceptCallPendingIntent (Lio/getstream/video/android/model/StreamCallId;I)Landroid/app/PendingIntent;
4382
+
public static synthetic fun searchAcceptCallPendingIntent$default (Lio/getstream/video/android/core/notifications/DefaultStreamIntentResolver;Lio/getstream/video/android/model/StreamCallId;IILjava/lang/Object;)Landroid/app/PendingIntent;
4383
+
public final fun searchEndCallPendingIntent (Lio/getstream/video/android/model/StreamCallId;)Landroid/app/PendingIntent;
4384
+
public final fun searchIncomingCallPendingIntent (Lio/getstream/video/android/model/StreamCallId;I)Landroid/app/PendingIntent;
4385
+
public static synthetic fun searchIncomingCallPendingIntent$default (Lio/getstream/video/android/core/notifications/DefaultStreamIntentResolver;Lio/getstream/video/android/model/StreamCallId;IILjava/lang/Object;)Landroid/app/PendingIntent;
4386
+
public final fun searchLiveCallPendingIntent (Lio/getstream/video/android/model/StreamCallId;I)Landroid/app/PendingIntent;
4387
+
public final fun searchMissedCallPendingIntent (Lio/getstream/video/android/model/StreamCallId;I)Landroid/app/PendingIntent;
4388
+
public final fun searchNotificationCallPendingIntent (Lio/getstream/video/android/model/StreamCallId;I)Landroid/app/PendingIntent;
4389
+
public final fun searchOngoingCallPendingIntent (Lio/getstream/video/android/model/StreamCallId;I)Landroid/app/PendingIntent;
4390
+
public final fun searchOutgoingCallPendingIntent (Lio/getstream/video/android/model/StreamCallId;I)Landroid/app/PendingIntent;
4391
+
public static synthetic fun searchOutgoingCallPendingIntent$default (Lio/getstream/video/android/core/notifications/DefaultStreamIntentResolver;Lio/getstream/video/android/model/StreamCallId;IILjava/lang/Object;)Landroid/app/PendingIntent;
4392
+
public final fun searchRejectCallPendingIntent (Lio/getstream/video/android/model/StreamCallId;)Landroid/app/PendingIntent;
4393
+
}
4394
+
4361
4395
public final class io/getstream/video/android/core/notifications/NotificationConfig {
4362
4396
public fun <init> ()V
4363
4397
public fun <init> (Ljava/util/List;Lkotlin/jvm/functions/Function0;Lio/getstream/video/android/core/notifications/NotificationHandler;ZLkotlin/jvm/functions/Function0;Z)V
@@ -4396,6 +4430,7 @@ public abstract interface class io/getstream/video/android/core/notifications/No
4396
4430
public static final field INTENT_EXTRA_CALL_CID Ljava/lang/String;
4397
4431
public static final field INTENT_EXTRA_CALL_DISPLAY_NAME Ljava/lang/String;
4398
4432
public static final field INTENT_EXTRA_NOTIFICATION_ID Ljava/lang/String;
4433
+
public abstract fun getIncomingCallNotification (Landroid/app/PendingIntent;Landroid/app/PendingIntent;Landroid/app/PendingIntent;Ljava/lang/String;Z)Landroid/app/Notification;
4399
4434
public abstract fun getNotificationUpdates (Lkotlinx/coroutines/CoroutineScope;Lio/getstream/video/android/core/Call;Lio/getstream/video/android/model/User;Lkotlin/jvm/functions/Function1;)V
4400
4435
public abstract fun getOngoingCallNotification (Lio/getstream/video/android/model/StreamCallId;Ljava/lang/String;ZI)Landroid/app/Notification;
4401
4436
public static synthetic fun getOngoingCallNotification$default (Lio/getstream/video/android/core/notifications/NotificationHandler;Lio/getstream/video/android/model/StreamCallId;Ljava/lang/String;ZIILjava/lang/Object;)Landroid/app/Notification;
Copy file name to clipboardExpand all lines: stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/DefaultNotificationHandler.kt
0 commit comments