Language

MockPackageManager.AddPreferredActivity メソッド

定義

注意事項

deprecated

[Android.Runtime.Register("addPreferredActivity", "(Landroid/content/IntentFilter;I[Landroid/content/ComponentName;Landroid/content/ComponentName;)V", "GetAddPreferredActivity_Landroid_content_IntentFilter_IarrayLandroid_content_ComponentName_Landroid_content_ComponentName_Handler")]
[System.Obsolete("deprecated")]
public override void AddPreferredActivity(Android.Content.IntentFilter? filter, Android.Content.MatchResults match, Android.Content.ComponentName[]? set, Android.Content.ComponentName? activity);
[<Android.Runtime.Register("addPreferredActivity", "(Landroid/content/IntentFilter;I[Landroid/content/ComponentName;Landroid/content/ComponentName;)V", "GetAddPreferredActivity_Landroid_content_IntentFilter_IarrayLandroid_content_ComponentName_Landroid_content_ComponentName_Handler")>]
[<System.Obsolete("deprecated")>]
override this.AddPreferredActivity : Android.Content.IntentFilter * Android.Content.MatchResults * Android.Content.ComponentName[] * Android.Content.ComponentName -> unit

パラメーター

filter
IntentFilter

このアクティビティが優先される意図のセット。

match
MatchResults

IntentFilter は、この基本設定が適用されるカテゴリと一致します。

set
ComponentName[]

この設定が行われたときにユーザーが選択していたアクティビティのセット。

activity
ComponentName

推奨されるアクティビティのコンポーネント名。

属性

注釈

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

適用対象