RootBuilder

public final class RootBuilder

Class for building root matchers

This class helps to build matches for root. Please note that any function invoking will add specific matcher to the list and after that all of them will be combined with help of AllOf.allOf()

See also

AllOf.allOf

()

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public final Matcher<Root> getRootMatcher()

Returns combined root matchers with AllOf.allOf()

Link copied to clipboard
public final Unit isDialog()

Matches root that is dialog

Link copied to clipboard
public final Unit isFocusable()

Matches root that is focusable

Link copied to clipboard
public final Unit isNotDialog()

Matches root that is not dialog

Link copied to clipboard
public final Unit isNotFocusable()

Matches root that is not focusable

Link copied to clipboard
public final Unit isNotPlatformPopup()

Matches root that is not platform popup

Link copied to clipboard

Matches root that is not system alert window

Link copied to clipboard
public final Unit isNotTouchable()

Matches root that is not touchable

Link copied to clipboard
public final Unit isPlatformPopup()

Matches root that is platform popup

Link copied to clipboard
public final Unit isSystemAlertWindow()

Matches root that is system alert window

Link copied to clipboard
public final Unit isTouchable()

Matches root that is touchable

Link copied to clipboard
public final Unit withDecorView(Function1<ViewBuilder, Unit> function)

Matches root that has decor view matching given matcher

Link copied to clipboard
public final Unit withMatcher(Matcher<Root> matcher)

Matches root with given custom matcher