Class

SelectionResult

Result of SemanticsSelector projection.

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

Result of SemanticsSelector projection.

Parameters

selectedNodes The result nodes found.
customErrorOnNoMatch 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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: