Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Selector

Hierarchy

  • Selector

Index

Methods

Static accessibilityId

  • accessibilityId(accessibilityId: string): Selector

Static accessibilityIdContains

  • accessibilityIdContains(accessibilityId: string): Selector

Static accessibilityIdMatches

  • accessibilityIdMatches(accessibilityId: string): Selector

Static accessibilityIdStartsWith

  • accessibilityIdStartsWith(accessibilityId: string): Selector

Static and

  • Combines two selectors by an AND (&&) condition.

    note

    If one of the selectors has a null selector on one platform, the resulting selector will also have null on this platform. If one of the selectors has a null selector on Android and the other has a null selector on iOS, an error will be thrown, since the resulting selector would be null.

    Parameters

    • selector1: Selector

      to be combined with an AND condition with {@code selector2}

    • selector2: Selector

      to be combined with an AND condition with {@code selector1}

    Returns Selector

Static custom

  • Allows building a custom selector for Android and iOS.

    note

    One of the parameters {@code android} or {@code ios} may be null, in case a selector only needs to be used on one specific platform.

    Type parameters

    • T

    • U

    Parameters

    • android: AndroidSelector<T> | null

      the custom selector to be used on Android

    • ios: IosSelector<U> | null

      the custom selector to be used on iOS

    Returns Selector

Static disabled

Static enabled

Static or

  • Combines two selectors with an OR (||) condition.

    note

    If one of the selectors has a null selector on one platform, the resulting selector will also have null on this platform. If one of the selectors has a null selector on Android and the other has a null selector on iOS, an error will be thrown, since the resulting selector would be null.

    Parameters

    • selector1: Selector

      to be combined with an OR condition with {@code selector2}

    • selector2: Selector

      to be combined with an OR condition with {@code selector1}

    Returns Selector

Static text

Static textContains

Static textMatches

Static textStartsWith

  • textStartsWith(text: string): Selector

Static type

Generated using TypeDoc