# ResolvedIntent

Summary:[Methods](https://developer.android.com/reference/android/support/test/espresso/intent/ResolvedIntent#pubmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/espresso/intent/ResolvedIntent#)  

# ResolvedIntent

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


interface
ResolvedIntent
`  
`


`

|-----------------------------------------------------|
| android.support.test.espresso.intent.ResolvedIntent |

|---|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/espresso/intent/ResolvedIntent#)Known Indirect Subclasses [VerifiableIntent](https://developer.android.com/reference/android/support/test/espresso/intent/VerifiableIntent) |-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------| | [VerifiableIntent](https://developer.android.com/reference/android/support/test/espresso/intent/VerifiableIntent) | A[ResolvedIntent](https://developer.android.com/reference/android/support/test/espresso/intent/ResolvedIntent)that can be marked as verified. | ||

<br />

*** ** * ** ***

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 methods                                                                                                                                                                                                       ||
|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract boolean`                                                                       | ` `[canBeHandledBy](https://developer.android.com/reference/android/support/test/espresso/intent/ResolvedIntent#canBeHandledBy(java.lang.String))`(`[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 `[Intent](https://developer.android.com/reference/android/content/Intent.html) | ` `[getIntent](https://developer.android.com/reference/android/support/test/espresso/intent/ResolvedIntent#getIntent())`() ` Returns the underlying[Intent](https://developer.android.com/reference/android/content/Intent.html).                                                                                                   |

## Public methods

### canBeHandledBy

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

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

<br />

|          Parameters           ||
|--------------|-----------------|
| `appPackage` | `String` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### getIntent

```
Intent getIntent ()
```

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

<br />

|                                        Returns                                        ||
|-------------------------------------------------------------------------------|--------|
| [Intent](https://developer.android.com/reference/android/content/Intent.html) | <br /> |

-

  ## Interfaces

  - [ActivityResultFunction](https://developer.android.com/reference/android/support/test/espresso/intent/ActivityResultFunction)
  - [ResettingStubber](https://developer.android.com/reference/android/support/test/espresso/intent/ResettingStubber)
  - [ResolvedIntent](https://developer.android.com/reference/android/support/test/espresso/intent/ResolvedIntent)
  - [VerifiableIntent](https://developer.android.com/reference/android/support/test/espresso/intent/VerifiableIntent)
  - [VerificationMode](https://developer.android.com/reference/android/support/test/espresso/intent/VerificationMode)
-

  ## Classes

  - [Checks](https://developer.android.com/reference/android/support/test/espresso/intent/Checks)
  - [Intents](https://developer.android.com/reference/android/support/test/espresso/intent/Intents)
  - [OngoingStubbing](https://developer.android.com/reference/android/support/test/espresso/intent/OngoingStubbing)
  - [ResettingStubberImpl](https://developer.android.com/reference/android/support/test/espresso/intent/ResettingStubberImpl)
  - [VerificationModes](https://developer.android.com/reference/android/support/test/espresso/intent/VerificationModes)