PendingIntent.GetActivity PendingIntent.GetActivity Method

Definition

Overloads

GetActivity(Context, Int32, Intent, PendingIntentFlags) GetActivity(Context, Int32, Intent, PendingIntentFlags)

Retrieve a PendingIntent that will start a new activity, like calling StartActivity(Intent).

GetActivity(Context, Int32, Intent, PendingIntentFlags, Bundle) GetActivity(Context, Int32, Intent, PendingIntentFlags, Bundle)

Retrieve a PendingIntent that will start a new activity, like calling StartActivity(Intent).

GetActivity(Context, Int32, Intent, PendingIntentFlags) GetActivity(Context, Int32, Intent, PendingIntentFlags)

Retrieve a PendingIntent that will start a new activity, like calling StartActivity(Intent).

[Android.Runtime.Register("getActivity", "(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;", "")]
public static Android.App.PendingIntent GetActivity (Android.Content.Context context, int requestCode, Android.Content.Intent intent, Android.App.PendingIntentFlags flags);
static member GetActivity : Android.Content.Context * int * Android.Content.Intent * Android.App.PendingIntentFlags -> Android.App.PendingIntent

Parameters

context
Context Context

The Context in which this PendingIntent should start the activity.

requestCode
Int32 Int32

Private request code for the sender

intent
Intent Intent

Intent of the activity to be launched.

flags
PendingIntentFlags PendingIntentFlags

May be Android.App.PendingIntent.FLAG_ONE_SHOT, Android.App.PendingIntent.FLAG_NO_CREATE, CancelCurrent, UpdateCurrent, or any of the flags as supported by FillIn(Intent, FillInFlags) to control which unspecified parts of the intent that can be supplied when the actual send happens.

Returns

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.

GetActivity(Context, Int32, Intent, PendingIntentFlags, Bundle) GetActivity(Context, Int32, Intent, PendingIntentFlags, Bundle)

Retrieve a PendingIntent that will start a new activity, like calling StartActivity(Intent).

[Android.Runtime.Register("getActivity", "(Landroid/content/Context;ILandroid/content/Intent;ILandroid/os/Bundle;)Landroid/app/PendingIntent;", "", ApiSince=16)]
public static Android.App.PendingIntent GetActivity (Android.Content.Context context, int requestCode, Android.Content.Intent intent, Android.App.PendingIntentFlags flags, Android.OS.Bundle options);
static member GetActivity : Android.Content.Context * int * Android.Content.Intent * Android.App.PendingIntentFlags * Android.OS.Bundle -> Android.App.PendingIntent

Parameters

context
Context Context

The Context in which this PendingIntent should start the activity.

requestCode
Int32 Int32

Private request code for the sender

intent
Intent Intent

Intent of the activity to be launched.

flags
PendingIntentFlags PendingIntentFlags

May be Android.App.PendingIntent.FLAG_ONE_SHOT, Android.App.PendingIntent.FLAG_NO_CREATE, CancelCurrent, UpdateCurrent, or any of the flags as supported by FillIn(Intent, FillInFlags) to control which unspecified parts of the intent that can be supplied when the actual send happens.

options
Bundle Bundle

Additional options for how the Activity should be started. May be null if there are no options.

Returns

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