-
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static DefaultColorStringFormatterINSTANCE
-
Method Summary
Modifier and Type Method Description StringformatColorAsHexString(Integer color)Converts a color as an int to a standard web hexadecimal representation, as RGBA (e.g.: #A538AFFF). StringformatColorAndAlphaAsHexString(Integer color, Integer alpha)Converts a color as an int to a standard web hexadecimal representation, as RGBA (e.g.: #A538AFFF). -
-
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
-
-
-
-