Google is committed to advancing racial equity for Black communities. See how.

SelectionResult

class SelectionResult
kotlin.Any
   ↳ androidx.ui.test.SelectionResult

Result of SemanticsSelector projection.

Summary

Public constructors
<init>(selectedNodes: List<SemanticsNode>, customErrorOnNoMatch: String? = null)

Result of SemanticsSelector projection.

Properties
String?

If the projection failed to map nodes due to wrong input (e.

List<SemanticsNode>

The result nodes found.

Public constructors

<init>

SelectionResult(
    selectedNodes: List<SemanticsNode>,
    customErrorOnNoMatch: String? = null)

Result of SemanticsSelector projection.

Parameters
selectedNodes: List<SemanticsNode> The result nodes found.
customErrorOnNoMatch: String? = null If the projection failed to map nodes due to wrong input (e.g. selector expected only 1 node but got multiple) it will provide a custom error exactly explaining what selection was performed and what nodes it received.

Properties

customErrorOnNoMatch

val customErrorOnNoMatch: String?

If the projection failed to map nodes due to wrong input (e.g. selector expected only 1 node but got multiple) it will provide a custom error exactly explaining what selection was performed and what nodes it received.

selectedNodes

val selectedNodes: List<SemanticsNode>

The result nodes found.