语言

PackageManager.QueryIntentActivities 方法

定义

重载

名称 说明
QueryIntentActivities(Intent, PackageInfoFlags)

检索可为给定意向执行的所有活动。

QueryIntentActivities(Intent, PackageManager+ResolveInfoFlags)

请参阅 queryIntentActivities(Intent,int)。

QueryIntentActivities(Intent, PackageInfoFlags)

检索可为给定意向执行的所有活动。

[Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_IHandler")]
public abstract System.Collections.Generic.IList<Android.Content.PM.ResolveInfo> QueryIntentActivities(Android.Content.Intent intent, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_IHandler")>]
abstract member QueryIntentActivities : Android.Content.Intent * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

参数

intent
Intent

根据 resolveActivity() 所需的意向。

flags
PackageInfoFlags

用于修改返回的数据的其他选项标志。 最重要的是 #MATCH_DEFAULT_ONLY,将决议限制为仅支持这一 android.content.Intent#CATEGORY_DEFAULT问题的这些活动。 或者,设置为 #MATCH_ALL 阻止对结果进行任何筛选。

返回

返回一个 ResolveInfo 对象列表,其中包含每个匹配活动的一个条目,从最佳到最差排序。 换句话说,第一项是返回的内容 #resolveActivity。 如果没有匹配的活动,则返回空列表。

特性

注解

检索可为给定意向执行的所有活动。

需要长标志时使用 #queryIntentActivities(Intent, ResolveInfoFlags) 。

Java文档android.content.pm.PackageManager.queryIntentActivities(android.content.Intent, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

QueryIntentActivities(Intent, PackageManager+ResolveInfoFlags)

请参阅 queryIntentActivities(Intent,int)。

[Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_Landroid_content_pm_PackageManager_ResolveInfoFlags_Handler", ApiSince=33)]
public virtual System.Collections.Generic.IList<Android.Content.PM.ResolveInfo> QueryIntentActivities(Android.Content.Intent intent, Android.Content.PM.PackageManager.ResolveInfoFlags flags);
[<Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_Landroid_content_pm_PackageManager_ResolveInfoFlags_Handler", ApiSince=33)>]
abstract member QueryIntentActivities : Android.Content.Intent * Android.Content.PM.PackageManager.ResolveInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>
override this.QueryIntentActivities : Android.Content.Intent * Android.Content.PM.PackageManager.ResolveInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

参数

intent
Intent

用于匹配活动的意向。

flags
PackageManager.ResolveInfoFlags

控制匹配和返回详细信息的解析查询标志包装器。

返回

匹配意向和查询标志的活动的解析记录。

特性

注解

请参阅 queryIntentActivities(Intent,int)。

Android 参考。android.content.pm.PackageManager.queryIntentActivities

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于