# 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)

*** ** * ** ***


```
public interface ResolvedIntent
```

<br />

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

|---|---|
| `https://developer.android.com/reference/androidx/test/espresso/intent/VerifiableIntent` | A `https://developer.android.com/reference/androidx/test/espresso/intent/ResolvedIntent` that can be marked as verified. |

*** ** * ** ***

An `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 methods |
|---|---|
| `abstract boolean` | `https://developer.android.com/reference/androidx/test/espresso/intent/ResolvedIntent#canBeHandledBy(java.lang.String)(https://developer.android.com/reference/java/lang/String.html appPackage)` Returns `true` if this recorded intent can be handled by an activity in the given package. |
| `abstract https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/androidx/test/espresso/intent/ResolvedIntent#getIntent()()` Returns the underlying `https://developer.android.com/reference/android/content/Intent.html`. |

## Public methods

### canBeHandledBy

```
abstract boolean canBeHandledBy(String appPackage)
```

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

### getIntent

```
abstract Intent getIntent()
```

Returns the underlying `https://developer.android.com/reference/android/content/Intent.html`.