# VerificationMode

# VerificationMode

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/test/espresso/intent/VerificationMode "View this page in Java")

<br />

```
interface VerificationMode
```

<br />

*** ** * ** ***

An interface for different modes of verifying intents.

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [verify](https://developer.android.com/reference/kotlin/androidx/test/espresso/intent/VerificationMode#verify(org.hamcrest.Matcher<android.content.Intent>,java.util.List<androidx.test.espresso.intent.VerifiableIntent>))`(` ` matcher: `[Matcher](https://junit.org/junit4/javadoc/4.12/org/hamcrest/Matcher.html)`<`[Intent](https://developer.android.com/reference/android/content/Intent.html)`!>!,` ` recordedIntents: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[VerifiableIntent](https://developer.android.com/reference/kotlin/androidx/test/espresso/intent/VerifiableIntent)`!>!` `)` Verifies the recorded intents that match the provided[Matcher](https://junit.org/junit4/javadoc/4.12/org/hamcrest/Matcher.html). |

## Public functions

### verify

```
fun verify(
    matcher: Matcher<Intent!>!,
    recordedIntents: (Mutable)List<VerifiableIntent!>!
): Unit
```

Verifies the recorded intents that match the provided[Matcher](https://junit.org/junit4/javadoc/4.12/org/hamcrest/Matcher.html). No intents should be marked as verified unless the verification passes.