Package-level declarations

Functions

Link copied to clipboard
fun findAllComponentsInLithoView(lithoView: LithoView, vararg clazz: Class<out Component?>): List<Component>
fun findAllComponentsInLithoView(lithoView: LithoView, vararg clazz: KClass<out Component>): List<Component>

Returns a list of all components of the given classes from the ComponentTree or an empty list if not found

Link copied to clipboard
fun findAllDirectComponentsInLithoView(lithoView: LithoView, clazz: Class<out Component>): List<Component>
fun findAllDirectComponentsInLithoView(lithoView: LithoView, clazz: KClass<out Component>): List<Component>
Link copied to clipboard
fun findComponentInLithoView(lithoView: LithoView, clazz: Class<out Component?>): Component?
fun findComponentInLithoView(lithoView: LithoView, clazz: KClass<out Component>): Component?

Returns a component of the given class from the ComponentTree or null if not found

Link copied to clipboard
fun findDirectComponentInLithoView(lithoView: LithoView, clazz: Class<out Component?>): Component?

Returns a component of the given class only if the component renders directly to the root component of the LithoView

fun findDirectComponentInLithoView(lithoView: LithoView, clazz: KClass<out Component>): Component?

Returns a component of the given class only if the component renders directly to the root component of the LithoView (for details see: findDirectComponentInLithoView)

Link copied to clipboard
fun getRootComponentInLithoView(lithoView: LithoView): Component?

Returns the root component of the LithoView.