DebugComponentDescriptionHelper

Describes DebugComponents for use in testing and debugging. Note that com.facebook.litho.config.ComponentsConfiguration#isEndToEndTestRun must be enabled in order for this data to be collected.

Types

Link copied to clipboard
fun interface ExtraDescription

An fun interface for callsite to append extra description into StringBuilder by given DebugComponent.

Functions

Link copied to clipboard
fun addViewDescription(debugComponent: DebugComponent, sb: StringBuilder, leftOffset: Int, topOffset: Int, embedded: Boolean, withProps: Boolean)

fun addViewDescription(debugComponent: DebugComponent, sb: StringBuilder, leftOffset: Int, topOffset: Int, embedded: Boolean, withProps: Boolean, extraDescription: DebugComponentDescriptionHelper.ExtraDescription?)

Appends a compact description of a DebugComponent for debugging purposes.

Link copied to clipboard