Package im.getsocial.sdk.notifications
Class NotificationCustomization
- java.lang.Object
-
- im.getsocial.sdk.notifications.NotificationCustomization
-
public class NotificationCustomization extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NotificationCustomization()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBackgroundImageConfiguration()
Returns the background image configuration.java.lang.String
getTextColor()
Returns the color of message text.java.lang.String
getTitleColor()
Returns the color of title text.java.lang.String
toString()
static NotificationCustomization
withBackgroundImageConfiguration(java.lang.String backgroundImageConfiguration)
Creates new NotificationCustomization object with the provided background image configuration.NotificationCustomization
withTextColor(java.lang.String textColor)
Sets notification text color.NotificationCustomization
withTitleColor(java.lang.String titleColor)
Sets notification title color.
-
-
-
Method Detail
-
withBackgroundImageConfiguration
public static NotificationCustomization withBackgroundImageConfiguration(java.lang.String backgroundImageConfiguration)
Creates new NotificationCustomization object with the provided background image configuration.- Parameters:
backgroundImageConfiguration
- background image, can be remote url or drawable resource.- Returns:
- new NotificationCustomization instance.
-
getBackgroundImageConfiguration
public java.lang.String getBackgroundImageConfiguration()
Returns the background image configuration. It can contain a valid url, or a drawable, like 'drawable/notification_background' Supported only on Android.- Returns:
- background image setting.
-
getTitleColor
public java.lang.String getTitleColor()
Returns the color of title text. Only used if background image is set. Supported only on Android.- Returns:
- color as ARGB hex string.
-
getTextColor
public java.lang.String getTextColor()
Returns the color of message text. Only used if background image is set. Supported only on Android.- Returns:
- color as ARGB hex string.
-
withTitleColor
public NotificationCustomization withTitleColor(java.lang.String titleColor)
Sets notification title color.- Parameters:
titleColor
- color in ARGB format.- Returns:
- updated instance for method chaining.
-
withTextColor
public NotificationCustomization withTextColor(java.lang.String textColor)
Sets notification text color.- Parameters:
textColor
- color in ARGB format.- Returns:
- updated instance for method chaining.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-