MockPackageManager.AddPreferredActivity Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
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
	Parameters
- filter
 - IntentFilter
 
The set of intents under which this activity will be made preferred.
- match
 - MatchResults
 
The IntentFilter match category that this preference applies to.
- set
 - ComponentName[]
 
The set of activities that the user was picking from when this preference was made.
- activity
 - ComponentName
 
The component name of the activity that is to be preferred.
- Attributes
 
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.