Android.Content.Intent.SetComponent Method
(Usually optional) Explicitly set the component to handle the intent.

Syntax

[Android.Runtime.Register("setComponent", "(Landroid/content/ComponentName;)Landroid/content/Intent;", "GetSetComponent_Landroid_content_ComponentName_Handler")]
public virtual Intent SetComponent (ComponentName component)

See Also

Intent.SetClassName(Context, System.String)
Intent.SetClassName(string, System.String)
Intent.Component
Intent.ResolveActivity(Android.Content.PM.PackageManager)

Parameters

component
The name of the application component to handle the intent, or null to let the system find one for you.

Returns

Documentation for this section has not yet been entered.

Remarks

(Usually optional) Explicitly set the component to handle the intent. If left with the default value of null, the system will determine the appropriate class to use based on the other fields (action, data, type, categories) in the Intent. If this class is defined, the specified class will always be used regardless of the other fields. You should only set this value when you know you absolutely want a specific class to be used; otherwise it is better to let the system find the appropriate class so that you will respect the installed applications and user preferences.

[Android Documentation]

Requirements

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