{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

AmbiguousViewMatcherException.Builder

public class AmbiguousViewMatcherException.Builder


Builder for AmbiguousViewMatcherException.

Summary

Public constructors

Public methods

AmbiguousViewMatcherException
AmbiguousViewMatcherException.Builder
AmbiguousViewMatcherException.Builder
includeViewHierarchy(boolean includeViewHierarchy)
AmbiguousViewMatcherException.Builder
withMaxMsgLen(int maxMsgLen)
AmbiguousViewMatcherException.Builder
withOtherAmbiguousViews(View[] others)
AmbiguousViewMatcherException.Builder
withRootView(View rootView)
AmbiguousViewMatcherException.Builder
withView1(View view1)
AmbiguousViewMatcherException.Builder
withView2(View view2)
AmbiguousViewMatcherException.Builder
withViewHierarchyFile(String viewHierarchyFile)
AmbiguousViewMatcherException.Builder
withViewMatcher(Matcher<? super View> viewMatcher)

Public constructors

Builder

public Builder()

Public methods

build

public AmbiguousViewMatcherException build()

from

public AmbiguousViewMatcherException.Builder from(AmbiguousViewMatcherException exception)

includeViewHierarchy

public AmbiguousViewMatcherException.Builder includeViewHierarchy(boolean includeViewHierarchy)

withMaxMsgLen

public AmbiguousViewMatcherException.Builder withMaxMsgLen(int maxMsgLen)

withOtherAmbiguousViews

public AmbiguousViewMatcherException.Builder withOtherAmbiguousViews(View[] others)

withRootView

public AmbiguousViewMatcherException.Builder withRootView(View rootView)

withView1

public AmbiguousViewMatcherException.Builder withView1(View view1)

withView2

public AmbiguousViewMatcherException.Builder withView2(View view2)

withViewHierarchyFile

public AmbiguousViewMatcherException.Builder withViewHierarchyFile(String viewHierarchyFile)

withViewMatcher

public AmbiguousViewMatcherException.Builder withViewMatcher(Matcher<? super View> viewMatcher)