Intent.SetAction(String) Method

Definition

Set the general action to be performed.

[Android.Runtime.Register("setAction", "(Ljava/lang/String;)Landroid/content/Intent;", "GetSetAction_Ljava_lang_String_Handler")]
public virtual Android.Content.Intent SetAction (string? action);
[<Android.Runtime.Register("setAction", "(Ljava/lang/String;)Landroid/content/Intent;", "GetSetAction_Ljava_lang_String_Handler")>]
abstract member SetAction : string -> Android.Content.Intent
override this.SetAction : string -> Android.Content.Intent

Parameters

action
String

An action name, such as ACTION_VIEW. Application-specific actions should be prefixed with the vendor's package name.

Returns

Returns the same Intent object, for chaining multiple calls into a single statement.

Attributes

Remarks

Set the general action to be performed.

Java documentation for android.content.Intent.setAction(java.lang.String).

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.

Applies to

See also