Skip to content

BaseWireframeMapper

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

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
Clone this wiki locally