public class RemoteNotificationHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
convertExtrasToNotificationData(android.os.Bundle extras) |
static int |
getNotificationIcon(android.content.Context context)
Returns default drawable resource for the notification icon
|
static RemoteNotification |
remoteNotificationFrom(com.google.firebase.messaging.RemoteMessage.Notification notification,
java.util.Map<java.lang.String,java.lang.String> data,
android.content.Context context)
Creates Unblu RemoteNotificationObject from Firebase RemoteMessage.Notification
|
static RemoteNotification |
remoteNotificationFrom(com.google.firebase.messaging.RemoteMessage.Notification notification,
java.util.Map<java.lang.String,java.lang.String> data,
int iconResource)
Creates Unblu RemoteNotificationObject from Firebase RemoteMessage.Notification and allows to specify a drawable resource for the notification icon
|
public static RemoteNotification remoteNotificationFrom(com.google.firebase.messaging.RemoteMessage.Notification notification, java.util.Map<java.lang.String,java.lang.String> data, @DrawableRes int iconResource)
notification
- The Firebase Notification Objectdata
- The incoming notification dataiconResource
- the Drawable Resource for the notification iconpublic static RemoteNotification remoteNotificationFrom(com.google.firebase.messaging.RemoteMessage.Notification notification, java.util.Map<java.lang.String,java.lang.String> data, android.content.Context context)
notification
- The Firebase Notification Objectdata
- The incoming notification datacontext
- Application contextpublic static int getNotificationIcon(android.content.Context context)
public static java.util.Map<java.lang.String,java.lang.String> convertExtrasToNotificationData(android.os.Bundle extras)