SelectionResult

Class

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

Result of SemanticsSelector projection.

Parameters

selectedNodesThe result nodes found.
customErrorOnNoMatchIf 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.