BaseWireframeMapper - DataDog/dd-sdk-android GitHub Wiki

abstract class BaseWireframeMapper<in T : View>(viewIdentifierResolver: ViewIdentifierResolver, colorStringFormatter: ColorStringFormatter, viewBoundsResolver: ViewBoundsResolver, drawableToColorMapper: DrawableToColorMapper) : WireframeMapper<T>

A basic abstract WireframeMapper that provides some helpful utilities.

It provides functions to:

  • resolve a stable id for any View
  • converts a Drawable into a MobileSegment.ShapeStyle

Parameters

T the type of the View to map

Inheritors

BaseAsyncBackgroundWireframeMapper

Constructors

BaseWireframeMapper

constructor(viewIdentifierResolver: ViewIdentifierResolver, colorStringFormatter: ColorStringFormatter, viewBoundsResolver: ViewBoundsResolver, drawableToColorMapper: DrawableToColorMapper)

Parameters
T the type of the View to map