Intent Constructors

Definition

Overloads

Intent()

Create an empty intent.

Intent(Intent)

Copy constructor.

Intent(String)

Create an intent with a given action.

Intent(Context, Class)

Create an intent for a specific component.

Intent(Context, Type)
Intent(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Intent(String, Uri)

Create an intent with a given action and for a given data url.

Intent(String, Uri, Context, Class)

Create an intent for a specific component with a specified action and data.

Intent(String, Uri, Context, Type)

Intent()

Create an empty intent.

[Android.Runtime.Register(".ctor", "()V", "")]
public Intent ();
Attributes

Remarks

Java documentation for android.content.Intent.Intent().

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

Intent(Intent)

Copy constructor.

[Android.Runtime.Register(".ctor", "(Landroid/content/Intent;)V", "")]
public Intent (Android.Content.Intent? o);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Intent;)V", "")>]
new Android.Content.Intent : Android.Content.Intent -> Android.Content.Intent

Parameters

o
Intent
Attributes

Remarks

Java documentation for android.content.Intent.Intent(android.content.Intent).

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

Intent(String)

Create an intent with a given action.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public Intent (string? action);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Content.Intent : string -> Android.Content.Intent

Parameters

action
String

The Intent action, such as ACTION_VIEW.

Attributes

Remarks

Java documentation for android.content.Intent.Intent(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

Intent(Context, Class)

Create an intent for a specific component.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/Class;)V", "")]
public Intent (Android.Content.Context? packageContext, Java.Lang.Class? cls);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/Class;)V", "")>]
new Android.Content.Intent : Android.Content.Context * Java.Lang.Class -> Android.Content.Intent

Parameters

packageContext
Context

A Context of the application package implementing this class.

cls
Class

The component class that is to be used for the intent.

Attributes

Remarks

Java documentation for android.content.Intent.Intent(android.content.Context, java.lang.Class<?>).

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

Intent(Context, Type)

public Intent (Android.Content.Context packageContext, Type type);
new Android.Content.Intent : Android.Content.Context * Type -> Android.Content.Intent

Parameters

packageContext
Context
type
Type

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.

Applies to

Intent(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Intent (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.Intent : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.Intent

Parameters

javaReference
IntPtr

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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.

Applies to

Intent(String, Uri)

Create an intent with a given action and for a given data url.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/net/Uri;)V", "")]
public Intent (string? action, Android.Net.Uri? uri);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/net/Uri;)V", "")>]
new Android.Content.Intent : string * Android.Net.Uri -> Android.Content.Intent

Parameters

action
String

The Intent action, such as ACTION_VIEW.

uri
Uri

The Intent data URI.

Attributes

Remarks

Java documentation for android.content.Intent.Intent(java.lang.String, android.net.Uri).

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

Intent(String, Uri, Context, Class)

Create an intent for a specific component with a specified action and data.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/net/Uri;Landroid/content/Context;Ljava/lang/Class;)V", "")]
public Intent (string? action, Android.Net.Uri? uri, Android.Content.Context? packageContext, Java.Lang.Class? cls);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/net/Uri;Landroid/content/Context;Ljava/lang/Class;)V", "")>]
new Android.Content.Intent : string * Android.Net.Uri * Android.Content.Context * Java.Lang.Class -> Android.Content.Intent

Parameters

action
String

The Intent action, such as ACTION_VIEW.

uri
Uri

The Intent data URI.

packageContext
Context

A Context of the application package implementing this class.

cls
Class

The component class that is to be used for the intent.

Attributes

Remarks

Java documentation for android.content.Intent.Intent(java.lang.String, android.net.Uri, android.content.Context, java.lang.Class<?>).

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

Intent(String, Uri, Context, Type)

public Intent (string action, Android.Net.Uri uri, Android.Content.Context packageContext, Type type);
new Android.Content.Intent : string * Android.Net.Uri * Android.Content.Context * Type -> Android.Content.Intent

Parameters

action
String
uri
Uri
packageContext
Context
type
Type

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.

Applies to