{% 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)
@CanIgnoreReturnValue @NonNull 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)
@CanIgnoreReturnValue @NonNull AmbiguousViewMatcherException.Builder
AmbiguousViewMatcherException.Builder

Public constructors

Builder

public final Builder()

Public methods

build

public AmbiguousViewMatcherException build()

from

public AmbiguousViewMatcherException.Builder from(AmbiguousViewMatcherException exception)

includeViewHierarchy

public AmbiguousViewMatcherException.Builder includeViewHierarchy(boolean includeViewHierarchy)

withMaxMsgLen

@CanIgnoreReturnValue
public @NonNull 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

@CanIgnoreReturnValue
public @NonNull AmbiguousViewMatcherException.Builder withViewHierarchyFile(@Nullable String viewHierarchyFile)

withViewMatcher

public AmbiguousViewMatcherException.Builder withViewMatcher(Matcher<Object> viewMatcher)