Package com.swrve.sdk

Interface SwrveNotificationFilter


  • public interface SwrveNotificationFilter
    • Method Detail

      • filterNotification

        android.app.Notification filterNotification​(androidx.core.app.NotificationCompat.Builder builder,
                                                    int id,
                                                    SwrveNotificationDetails notificationDetails,
                                                    java.lang.String jsonPayload)
        Method which can be implemented to filter incoming remote notifications. If filtering Geo Notifications, please use the SwrveGeoCustomFilter instead. Return null to prevent the notification from displaying.
        Parameters:
        builder - Notification builder with the Swrve generated notification
        id - Id that the notification would be displayed with
        notificationDetails - Notification details such as title and text
        jsonPayload - Custom json payload
        Returns:
        Your customized notification, or builder.build() with/without modifications, or null to suppress