Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ResolvedIntent\n\nSummary: [Methods](#pubmethods) \\| [\\[Expand All\\]](#) \n\nResolvedIntent\n==============\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\n\n`\npublic\n\n\ninterface\nResolvedIntent\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------|\n| android.support.test.espresso.intent.ResolvedIntent |\n\n|---|---|\n| Known Indirect Subclasses [VerifiableIntent](/reference/android/support/test/espresso/intent/VerifiableIntent) |--------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------| | [VerifiableIntent](/reference/android/support/test/espresso/intent/VerifiableIntent) | A [ResolvedIntent](/reference/android/support/test/espresso/intent/ResolvedIntent) that can be marked as verified. | ||\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn [Intent](https://developer.android.com/reference/android/content/Intent.html) that has been processed to determine the set of packages to which it resolves.\n\nSummary\n-------\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract boolean` | ` `[canBeHandledBy](/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. |\n| ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html) | ` `[getIntent](/reference/android/support/test/espresso/intent/ResolvedIntent#getIntent())`() ` Returns the underlying [Intent](https://developer.android.com/reference/android/content/Intent.html). |\n\nPublic methods\n--------------\n\n### canBeHandledBy\n\n```\nboolean canBeHandledBy (String appPackage)\n```\n\nReturns `true` if this recorded intent can be handled by an activity in the given\npackage.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|-----------------|\n| `appPackage` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### getIntent\n\n```\nIntent getIntent ()\n```\n\nReturns the underlying [Intent](https://developer.android.com/reference/android/content/Intent.html).\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------------------------------------------------------------------------------|--------|\n| [Intent](https://developer.android.com/reference/android/content/Intent.html) | \u003cbr /\u003e |\n\n-\n\n Interfaces\n ----------\n\n - [ActivityResultFunction](/reference/android/support/test/espresso/intent/ActivityResultFunction)\n - [ResettingStubber](/reference/android/support/test/espresso/intent/ResettingStubber)\n - [ResolvedIntent](/reference/android/support/test/espresso/intent/ResolvedIntent)\n - [VerifiableIntent](/reference/android/support/test/espresso/intent/VerifiableIntent)\n - [VerificationMode](/reference/android/support/test/espresso/intent/VerificationMode)\n-\n\n Classes\n -------\n\n - [Checks](/reference/android/support/test/espresso/intent/Checks)\n - [Intents](/reference/android/support/test/espresso/intent/Intents)\n - [OngoingStubbing](/reference/android/support/test/espresso/intent/OngoingStubbing)\n - [ResettingStubberImpl](/reference/android/support/test/espresso/intent/ResettingStubberImpl)\n - [VerificationModes](/reference/android/support/test/espresso/intent/VerificationModes)"]]