# ResolvedIntent

# ResolvedIntent

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/ResolvedIntent.java+class:androidx.test.espresso.intent.ResolvedIntent)

*** ** * ** ***

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

<br />

```
interface ResolvedIntent
```

<br />

Known direct subclasses  
[VerifiableIntent](https://developer.android.com/reference/kotlin/androidx/test/espresso/intent/VerifiableIntent)  

|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| [VerifiableIntent](https://developer.android.com/reference/kotlin/androidx/test/espresso/intent/VerifiableIntent) | A[ResolvedIntent](https://developer.android.com/reference/kotlin/androidx/test/espresso/intent/ResolvedIntent)that can be marked as verified. |

*** ** * ** ***

An[Intent](https://developer.android.com/reference/android/content/Intent.html)that has been processed to determine the set of packages to which it resolves.

## Summary

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [canBeHandledBy](https://developer.android.com/reference/kotlin/androidx/test/espresso/intent/ResolvedIntent#canBeHandledBy(java.lang.String))`(appPackage: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!)` Returns`true`if this recorded intent can be handled by an activity in the given package. |
| [Intent](https://developer.android.com/reference/android/content/Intent.html)`!`    | [getIntent](https://developer.android.com/reference/kotlin/androidx/test/espresso/intent/ResolvedIntent#getIntent())`()` Returns the underlying[Intent](https://developer.android.com/reference/android/content/Intent.html).                                                                                                               |

## Public functions

### canBeHandledBy

```
fun canBeHandledBy(appPackage: String!): Boolean
```

Returns`true`if this recorded intent can be handled by an activity in the given package.  

### getIntent

```
fun getIntent(): Intent!
```

Returns the underlying[Intent](https://developer.android.com/reference/android/content/Intent.html).