Share via


TaskStackBuilder.GetPendingIntent Method

Definition

Overloads

GetPendingIntent(Int32, PendingIntentFlags)

Obtain a PendingIntent for launching the task constructed by this builder so far.

GetPendingIntent(Int32, PendingIntentFlags, Bundle)

Obtain a PendingIntent for launching the task constructed by this builder so far.

GetPendingIntent(Int32, PendingIntentFlags)

Obtain a PendingIntent for launching the task constructed by this builder so far.

[Android.Runtime.Register("getPendingIntent", "(II)Landroid/app/PendingIntent;", "GetGetPendingIntent_IIHandler")]
public virtual Android.App.PendingIntent? GetPendingIntent (int requestCode, Android.App.PendingIntentFlags flags);
[<Android.Runtime.Register("getPendingIntent", "(II)Landroid/app/PendingIntent;", "GetGetPendingIntent_IIHandler")>]
abstract member GetPendingIntent : int * Android.App.PendingIntentFlags -> Android.App.PendingIntent
override this.GetPendingIntent : int * Android.App.PendingIntentFlags -> Android.App.PendingIntent

Parameters

requestCode
Int32

Private request code for the sender

flags
PendingIntentFlags

May be PendingIntent#FLAG_ONE_SHOT, PendingIntent#FLAG_NO_CREATE, PendingIntent#FLAG_CANCEL_CURRENT, PendingIntent#FLAG_UPDATE_CURRENT, or any of the flags supported by Intent#fillIn(Intent, int) to control which unspecified parts of the intent that can be supplied when the actual send happens.

Returns

The obtained PendingIntent

Attributes

Remarks

Obtain a PendingIntent for launching the task constructed by this builder so far.

Java documentation for android.app.TaskStackBuilder.getPendingIntent(int, int).

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

GetPendingIntent(Int32, PendingIntentFlags, Bundle)

Obtain a PendingIntent for launching the task constructed by this builder so far.

[Android.Runtime.Register("getPendingIntent", "(IILandroid/os/Bundle;)Landroid/app/PendingIntent;", "GetGetPendingIntent_IILandroid_os_Bundle_Handler")]
public virtual Android.App.PendingIntent? GetPendingIntent (int requestCode, Android.App.PendingIntentFlags flags, Android.OS.Bundle? options);
[<Android.Runtime.Register("getPendingIntent", "(IILandroid/os/Bundle;)Landroid/app/PendingIntent;", "GetGetPendingIntent_IILandroid_os_Bundle_Handler")>]
abstract member GetPendingIntent : int * Android.App.PendingIntentFlags * Android.OS.Bundle -> Android.App.PendingIntent
override this.GetPendingIntent : int * Android.App.PendingIntentFlags * Android.OS.Bundle -> Android.App.PendingIntent

Parameters

requestCode
Int32

Private request code for the sender

flags
PendingIntentFlags

May be PendingIntent#FLAG_ONE_SHOT, PendingIntent#FLAG_NO_CREATE, PendingIntent#FLAG_CANCEL_CURRENT, PendingIntent#FLAG_UPDATE_CURRENT, or any of the flags supported by Intent#fillIn(Intent, int) to control which unspecified parts of the intent that can be supplied when the actual send happens.

options
Bundle

Additional options for how the Activity should be started. See android.content.Context#startActivity(Intent, Bundle) Context.startActivity(Intent, Bundle)} for more details.

Returns

The obtained PendingIntent

Attributes

Remarks

Obtain a PendingIntent for launching the task constructed by this builder so far.

Java documentation for android.app.TaskStackBuilder.getPendingIntent(int, int, android.os.Bundle).

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