TestCollection

A wrapper class that exposes methods specific to testing collection components.

Constructors

Link copied to clipboard
constructor(recycler: LegacyRecycler)
constructor(recycler: Recycler)

Properties

Link copied to clipboard

Get the first fully visible item index, returns -1 when there are no components

Link copied to clipboard

Convenience property for getting the first item

Link copied to clipboard

Get the first visible item index, returns -1 when there are no components

Link copied to clipboard

Convenience property for getting the first visible item

Link copied to clipboard

Get all fully visible items

Link copied to clipboard

Get the number of items in the lazy collection. This is not the same as the number of items that are displayed.

Link copied to clipboard

All items in the lazy collection

Link copied to clipboard

Get the last Fully visible item index, returns -1 when there are no components

Link copied to clipboard

Convenience property for getting the last item

Link copied to clipboard

Get the last visible item index, returns -1 when there are no components

Link copied to clipboard

Convenience property for getting the last visible item

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Get all visible items

Functions

Link copied to clipboard

Performs a shallow search to Find the first item, with the given component type; in the LazyCollection.

Link copied to clipboard
inline fun findItems(vararg clazz: Class<out Component>): List<TestCollectionItem>
inline fun findItems(vararg clazz: KClass<out Component>): List<TestCollectionItem>
Link copied to clipboard

Convenience function for getting the item at an index

Link copied to clipboard

Retrieve the visible mounted children.