語言

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活動的活動。

傳回

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於