# AmbiguousViewMatcherException.Builder

Artifact: [androidx.test.espresso:espresso-core](https://developer.android.com/jetpack/androidx/releases/test-espresso) [View Source](https://cs.android.com/search?q=file:androidx/test/espresso/AmbiguousViewMatcherException.java+class:androidx.test.espresso.AmbiguousViewMatcherException.Builder)

*** ** * ** ***


```
class AmbiguousViewMatcherException.Builder
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#Builder()()` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#build()()` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#from(androidx.test.espresso.AmbiguousViewMatcherException)(exception: https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException!)` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#includeViewHierarchy(boolean)(includeViewHierarchy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#withMaxMsgLen(int)(maxMsgLen: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#withOtherAmbiguousViews(android.view.View...)(others: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/android/view/View.html!>!)` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#withRootView(android.view.View)(rootView: https://developer.android.com/reference/android/view/View.html!)` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#withView1(android.view.View)(view1: https://developer.android.com/reference/android/view/View.html!)` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#withView2(android.view.View)(view2: https://developer.android.com/reference/android/view/View.html!)` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#withViewHierarchyFile(java.lang.String)(viewHierarchyFile: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` |
| `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder!` | `https://developer.android.com/reference/kotlin/androidx/test/espresso/AmbiguousViewMatcherException.Builder#withViewMatcher(org.hamcrest.Matcher<? super android.view.View>)(viewMatcher: https://junit.org/junit4/javadoc/latest/org/hamcrest/Matcher.html<https://developer.android.com/reference/android/view/View.html!>!)` |

## 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<View!>!): AmbiguousViewMatcherException.Builder!
```