public class InspectableComponent extends Object
DebugComponent
exposing only information that are safe to use for test
assertions.Modifier and Type | Method and Description |
---|---|
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() |
InspectableComponent |
getNestedInstance(Component component)
Obtain an instance of a Component nested inside the given inspectable Component.
|
static InspectableComponent |
getRootInstance(LithoView view) |
String |
getSimpleName() |
StateContainer |
getStateContainer() |
String |
getTestKey() |
String |
getTextContent() |
String |
toString() |
public static InspectableComponent getRootInstance(LithoView view)
InspectableComponent
of a LithoView.public InspectableComponent getNestedInstance(Component component)
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.public View getMountedView()
public Drawable getMountedDrawable()
public LithoView getLithoView()
public Rect getBoundsInLithoView()
LithoView
.public Rect getBounds()
public String getTestKey()
public String getTextContent()
public ComponentHost getComponentHost()
ComponentHost
that wraps this component or null if one cannot be found.public String getKey()
public Component getComponent()
public Drawable getForeground()
public Drawable getBackground()
public Integer getImportantForAccessibility()
public boolean getFocusable()
public CharSequence getContentDescription()
public StateContainer getStateContainer()
public String getId()
public EventHandler getClickHandler()