MockPackageManager.AddPreferredActivity 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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
優先使用的活動組成名稱。
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。