Compartir a través de


MockPackageManager.ResolveActivity(Intent, PackageInfoFlags) Method

Definition

Determine the best action to perform for a given Intent.

[Android.Runtime.Register("resolveActivity", "(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;", "GetResolveActivity_Landroid_content_Intent_IHandler")]
public override Android.Content.PM.ResolveInfo? ResolveActivity (Android.Content.Intent? intent, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("resolveActivity", "(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;", "GetResolveActivity_Landroid_content_Intent_IHandler")>]
override this.ResolveActivity : Android.Content.Intent * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ResolveInfo

Parameters

intent
Intent

An intent containing all of the desired specification (action, data, type, category, and/or component).

flags
PackageInfoFlags

Additional option flags. The most important is Android.Content.PM.PackageManager.MATCH_DEFAULT_ONLY, to limit the resolution to only those activities that support the CategoryDefault.

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to