Class NotificationCustomization


  • public class NotificationCustomization
    extends java.lang.Object
    • Constructor Detail

      • NotificationCustomization

        public NotificationCustomization()
    • 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 class java.lang.Object