SelectionResult


Result of SemanticsSelector projection.

Summary

Public constructors

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

Public properties

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.

Cmn
List<SemanticsNode>

The result nodes found.

Cmn

Public constructors

SelectionResult

SelectionResult(
    selectedNodes: List<SemanticsNode>,
    customErrorOnNoMatch: String? = null
)
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.

Public properties

customErrorOnNoMatch

val customErrorOnNoMatchString?

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 selectedNodesList<SemanticsNode>

The result nodes found.