语言

MockPackageManager.QueryIntentActivityOptions 方法

定义

检索应向用户呈现为类似选项的活动集。

[Android.Runtime.Register("queryIntentActivityOptions", "(Landroid/content/ComponentName;[Landroid/content/Intent;Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentActivityOptions_Landroid_content_ComponentName_arrayLandroid_content_Intent_Landroid_content_Intent_IHandler")]
public override System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>? QueryIntentActivityOptions(Android.Content.ComponentName? caller, Android.Content.Intent[]? specifics, Android.Content.Intent? intent, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryIntentActivityOptions", "(Landroid/content/ComponentName;[Landroid/content/Intent;Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentActivityOptions_Landroid_content_ComponentName_arrayLandroid_content_Intent_Landroid_content_Intent_IHandler")>]
override this.QueryIntentActivityOptions : Android.Content.ComponentName * Android.Content.Intent[] * Android.Content.Intent * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

参数

caller
ComponentName

发出请求的活动的类名。 此活动永远不会显示在输出列表中。 可以为 null。

specifics
Intent[]

应解析为第一个特定结果的意向数组。 可以为 null。

intent
Intent

根据 resolveActivity() 所需的意向。

flags
PackageInfoFlags

其他选项标志。 最重要的是 Android.Content.PM.PackageManager.MATCH_DEFAULT_ONLY,将决议限制为仅支持这 CategoryDefault一活动的那些活动。

返回

不返回任何值。 默认模拟实现引发 UnsupportedOperationException;重写此方法以提供测试结果。

特性

注解

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

适用于