Package com.unblu.sdk.core.notification
Interface UnbluNotification
-
public interface UnbluNotification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getBody()
java.lang.String
getChannelId()
java.util.Map<java.lang.String,java.lang.String>
getData()
int
getIcon()
java.lang.String
getSound()
java.lang.String
getTitle()
void
setBody(java.lang.String body)
void
setChannelId(java.lang.String channelId)
void
setData(java.util.Map<java.lang.String,java.lang.String> data)
void
setIcon(int icon)
void
setSound(java.lang.String sound)
void
setTitle(java.lang.String title)
-
-
-
Method Detail
-
getTitle
@Nullable java.lang.String getTitle()
- Returns:
- the title of the notification
-
getBody
@Nullable java.lang.String getBody()
- Returns:
- The body of the notification
-
getIcon
int getIcon()
- Returns:
- icon id of the Unblu notification
-
getSound
@Nullable java.lang.String getSound()
- Returns:
- The sound name of the Unblu notification.
This can be "default" to have the default sound for the notifications of the system or the name of a file inside the top level raw folder. If it is null also the default is used.
Note: This is only used for older android devices if there are no channels (version > Android O)
-
getChannelId
@Nullable java.lang.String getChannelId()
- Returns:
- The id of the channel of the Unblu notification
-
getData
java.util.Map<java.lang.String,java.lang.String> getData()
- Returns:
- The additional data of the Unblu notification
-
setTitle
void setTitle(@Nullable java.lang.String title)
-
setBody
void setBody(@Nullable java.lang.String body)
-
setIcon
void setIcon(int icon)
-
setSound
void setSound(@Nullable java.lang.String sound)
-
setChannelId
void setChannelId(@Nullable java.lang.String channelId)
-
setData
void setData(java.util.Map<java.lang.String,java.lang.String> data)
-
-