-
- All Implemented Interfaces:
-
com.datadog.android.sessionreplay.recorder.mapper.WireframeMapper
public abstract class BaseAsyncBackgroundWireframeMapper<T extends View> extends BaseWireframeMapper<T>
A basic abstract WireframeMapper that provides some helpful utilities to resolve the background drawable of the View on a background thread, allowing tracking actual images.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBaseAsyncBackgroundWireframeMapper.Companion
-
Constructor Summary
Constructors Constructor Description BaseAsyncBackgroundWireframeMapper(ViewIdentifierResolver viewIdentifierResolver, ColorStringFormatter colorStringFormatter, ViewBoundsResolver viewBoundsResolver, DrawableToColorMapper drawableToColorMapper)
-
Method Summary
Modifier and Type Method Description List<MobileSegment.Wireframe>map(T view, MappingContext mappingContext, AsyncJobStatusCallback asyncJobStatusCallback, InternalLogger internalLogger)Maps a View to a List<Wireframe> in order to be rendered in the Session Replay player. -
-
Constructor Detail
-
BaseAsyncBackgroundWireframeMapper
BaseAsyncBackgroundWireframeMapper(ViewIdentifierResolver viewIdentifierResolver, ColorStringFormatter colorStringFormatter, ViewBoundsResolver viewBoundsResolver, DrawableToColorMapper drawableToColorMapper)
- Parameters:
viewIdentifierResolver- the ViewIdentifierResolver (to resolve a view or children stable id)colorStringFormatter- the ColorStringFormatter to transform Color into HTML hex stringsviewBoundsResolver- the ViewBoundsResolver to get a view boundaries in density independent unitsdrawableToColorMapper- the DrawableToColorMapper to convert a background drawable into a solid color
-
-
Method Detail
-
map
@UiThread() List<MobileSegment.Wireframe> map(T view, MappingContext mappingContext, AsyncJobStatusCallback asyncJobStatusCallback, InternalLogger internalLogger)
Maps a View to a List<Wireframe> in order to be rendered in the Session Replay player.
- Parameters:
view- as the View instance that will be mappedmappingContext- in which we provide useful information regarding the currentasyncJobStatusCallback- a callback that can be called when the mapper starts or finishes processing an async job.internalLogger- the logger to log internal warnings
-
-
-
-