LegacyDrawableToColorMapper - DataDog/dd-sdk-android GitHub Wiki
open class LegacyDrawableToColorMapper : DrawableToColorMapper
Drawable utility object needed in the Session Replay Wireframe Mappers. This class is meant for internal usage so please use it carefully as it might change in time.
Inheritors
AndroidMDrawableToColorMapper |
Types
LegacyDrawableToColorMapper.Companion
Constructors
LegacyDrawableToColorMapper
constructor()
Functions
mapDrawableToColor
open override fun mapDrawableToColor(drawable: Drawable, internalLogger: InternalLogger): Int?
Maps the drawable to its meaningful color, or null if the drawable is mostly invisible.
Return
the color as an Int (in 0xAARRGGBB order), or null if the drawable is mostly invisible
Parameters
drawable | the drawable to convert |
internalLogger | the internalLogger to report warnings |