public class RemoteNotification
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
body
The body of the remote notification
|
java.lang.String |
channelId
The id of the channel of the remote notification
|
int |
icon
The icon id of the remote notification
|
java.lang.String |
sound
The sound name of the remote notification.
This can be "default" to have the default sound for the remote notifications of the system or the name of a file inside the top level raw folder. |
java.lang.String |
title
The title of the remote notification
|
Constructor and Description |
---|
RemoteNotification(java.lang.String title,
java.lang.String body,
int icon,
java.lang.String sound,
java.lang.String channelId,
java.util.Map<java.lang.String,java.lang.String> data)
Creates a new
RemoteNotification which can be passed into the IUnbluNotificationApi |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getData() |
java.lang.String |
toString() |
@Nullable public final java.lang.String title
@Nullable public final java.lang.String body
public final int icon
@Nullable public final java.lang.String sound
@Nullable public final java.lang.String channelId
public RemoteNotification(@Nullable java.lang.String title, @Nullable java.lang.String body, int icon, @Nullable java.lang.String sound, @Nullable java.lang.String channelId, @NonNull java.util.Map<java.lang.String,java.lang.String> data)
RemoteNotification
which can be passed into the IUnbluNotificationApi
title
- The title of the notificationbody
- The body of the notificationicon
- The icon of the notificationsound
- The sound of the notification. If it is null or "default" the system default sound for notifications is used. Otherwise it must be the name of a file inside the root raw folder. This is only used if there are no channels on older android versions.channelId
- The id of the channel for the notificationdata
- Additional data of the notification