Package 

Object DefaultColorStringFormatter

  • All Implemented Interfaces:
    com.datadog.android.sessionreplay.utils.ColorStringFormatter

    
    public class DefaultColorStringFormatter
     implements ColorStringFormatter
                        

    String utility methods needed in the Session Replay Wireframe Mappers. This class is meant for internal usage so please use it with careful as it might change in time.

    • Method Summary

      Modifier and Type Method Description
      String formatColorAsHexString(Integer color) Converts a color as an int to a standard web hexadecimal representation, as RGBA (e.g.: #A538AFFF).
      String formatColorAndAlphaAsHexString(Integer color, Integer alpha) Converts a color as an int to a standard web hexadecimal representation, as RGBA (e.g.: #A538AFFF).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • formatColorAsHexString

         String formatColorAsHexString(Integer color)

        Converts a color as an int to a standard web hexadecimal representation, as RGBA (e.g.: #A538AFFF).

        Parameters:
        color - the color value (with or without alpha in the first 8 bits)
      • formatColorAndAlphaAsHexString

         String formatColorAndAlphaAsHexString(Integer color, Integer alpha)

        Converts a color as an int to a standard web hexadecimal representation, as RGBA (e.g.: #A538AFFF). If also overrides the color's alpha channel

        Parameters:
        color - the color value (with or without alpha in the first 8 bits)
        alpha - the override alpha in a O…255 range