Android.Content.PM.PackageManager.AddPreferredActivity Method

Syntax

[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")]
public abstract void AddPreferredActivity (Android.Content.IntentFilter filter, [Android.Runtime.GeneratedEnum] Android.Content.MatchResults match, Android.Content.ComponentName[] set, Android.Content.ComponentName activity)

Parameters

filter
The set of intents under which this activity will be made preferred.
match
The IntentFilter match category that this preference applies to.
set
The set of activities that the user was picking from when this preference was made.
activity
The component name of the activity that is to be preferred.

Remarks

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1