@Immutable public class InspectableComponent extends Object
DebugComponent
exposing only information that are safe to use
for test assertions.Modifier and Type | Method and Description |
---|---|
Reference<? extends Drawable> |
getBackground() |
Rect |
getBounds() |
Rect |
getBoundsInLithoView() |
List<InspectableComponent> |
getChildComponents()
Get the list of components composed by this component.
|
EventHandler |
getClickHandler() |
Component |
getComponent() |
Class |
getComponentClass() |
ComponentHost |
getComponentHost() |
CharSequence |
getContentDescription() |
boolean |
getFocusable() |
Drawable |
getForeground() |
String |
getId() |
Integer |
getImportantForAccessibility() |
String |
getKey() |
LithoView |
getLithoView() |
Drawable |
getMountedDrawable() |
View |
getMountedView() |
String |
getName() |
static InspectableComponent |
getRootInstance(LithoView view) |
String |
getSimpleName() |
ComponentLifecycle.StateContainer |
getStateContainer() |
String |
getTestKey() |
String |
getTextContent() |
YogaNode |
getYogaNode() |
String |
toString() |
@Nullable public static InspectableComponent getRootInstance(LithoView view)
InspectableComponent
of a LithoView.public String getName()
public String getSimpleName()
public Class getComponentClass()
public List<InspectableComponent> getChildComponents()
View
s
that are mounted by this component as those are not components. Use this#getMountedView
for that.@Nullable public View getMountedView()
@Nullable public Drawable getMountedDrawable()
@Nullable public LithoView getLithoView()
public Rect getBoundsInLithoView()
LithoView
.public Rect getBounds()
@Nullable public String getTestKey()
@Nullable public String getTextContent()
@Nullable public ComponentHost getComponentHost()
ComponentHost
that wraps this component or null if one cannot be found.@Nullable public String getKey()
@Nullable public Component getComponent()
@Nullable public YogaNode getYogaNode()
@Nullable public Drawable getForeground()
@Nullable public Reference<? extends Drawable> getBackground()
@Nullable public Integer getImportantForAccessibility()
public boolean getFocusable()
@Nullable public CharSequence getContentDescription()
@Nullable public ComponentLifecycle.StateContainer getStateContainer()
public String getId()
@Nullable public EventHandler getClickHandler()