Package com.swrve.sdk
Interface SwrveNotificationFilter
-
public interface SwrveNotificationFilter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
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 notificationid
- Id that the notification would be displayed withnotificationDetails
- Notification details such as title and textjsonPayload
- Custom json payload- Returns:
- Your customized notification, or builder.build() with/without modifications, or null to suppress
-
-