次の方法で共有


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

追加のオプション フラグ。 最も重要なのは をサポートCategoryDefaultするアクティビティのみに制限するために、Android.Content.PM.PackageManager.MATCH_DEFAULT_ONLY Android.Content.PM.PackageManager.MATCH_DEFAULT_ONLYです。

戻り値

属性

注釈

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象