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

AmbiguousViewMatcherException.Builder

class AmbiguousViewMatcherException.Builder


Builder for AmbiguousViewMatcherException.

Summary

Public constructors

Public functions

AmbiguousViewMatcherException!
AmbiguousViewMatcherException.Builder!
AmbiguousViewMatcherException.Builder!
includeViewHierarchy(includeViewHierarchy: Boolean)
@CanIgnoreReturnValue AmbiguousViewMatcherException.Builder
withMaxMsgLen(maxMsgLen: Int)
AmbiguousViewMatcherException.Builder!
AmbiguousViewMatcherException.Builder!
withRootView(rootView: View!)
AmbiguousViewMatcherException.Builder!
withView1(view1: View!)
AmbiguousViewMatcherException.Builder!
withView2(view2: View!)
@CanIgnoreReturnValue AmbiguousViewMatcherException.Builder
withViewHierarchyFile(viewHierarchyFile: String?)
AmbiguousViewMatcherException.Builder!
withViewMatcher(viewMatcher: Matcher<Any!>!)

Public constructors

Builder

Builder()

Public functions

build

fun build(): AmbiguousViewMatcherException!

from

fun from(exception: AmbiguousViewMatcherException!): AmbiguousViewMatcherException.Builder!

includeViewHierarchy

fun includeViewHierarchy(includeViewHierarchy: Boolean): AmbiguousViewMatcherException.Builder!

withMaxMsgLen

@CanIgnoreReturnValue
fun withMaxMsgLen(maxMsgLen: Int): AmbiguousViewMatcherException.Builder

withOtherAmbiguousViews

fun withOtherAmbiguousViews(others: Array<View!>!): AmbiguousViewMatcherException.Builder!

withRootView

fun withRootView(rootView: View!): AmbiguousViewMatcherException.Builder!

withView1

fun withView1(view1: View!): AmbiguousViewMatcherException.Builder!

withView2

fun withView2(view2: View!): AmbiguousViewMatcherException.Builder!

withViewHierarchyFile

@CanIgnoreReturnValue
fun withViewHierarchyFile(viewHierarchyFile: String?): AmbiguousViewMatcherException.Builder

withViewMatcher

fun withViewMatcher(viewMatcher: Matcher<Any!>!): AmbiguousViewMatcherException.Builder!