Interface UserNotificationOperationBuilder.WithHtmlIcon<T>

    • Method Detail

      • htmlIcon

        T htmlIcon​(java.lang.String htmlIcon)
            throws ValidationException
        Applies a custom icon to the notification as html. Only simple html is allowed e.g.:
        
         <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
          <path id="svg_2"
                d="m15.89584,9.25487c5.56598,-15.35691 27.3737,0 0,19.7446c-27.3737,-19.7446 -5.56598,-35.10151 0,-19.7446z"
                fill="#ec601a"/>
         </svg>
         
        Not allowed are html elements like iframe, embed, script, etc.
        Parameters:
        htmlIcon - an optional custom icon for the notification as html string
        Returns:
        the specific UserNotificationOperationBuilder instance of type T
        Throws:
        ValidationException - if the html string is not valid
        Since:
        12.13