TaskStackBuilder.GetPendingIntent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| 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
int: Private request code for the sender
- flags
- PendingIntentFlags
int: 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. Value is either 0 or a combination of the following: PendingIntent.FLAG_ONE_SHOT PendingIntent.FLAG_NO_CREATE PendingIntent.FLAG_CANCEL_CURRENT PendingIntent.FLAG_UPDATE_CURRENT PendingIntent.FLAG_IMMUTABLE PendingIntent.FLAG_MUTABLE PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT Intent.FILL_IN_ACTION Intent.FILL_IN_DATA Intent.FILL_IN_CATEGORIES Intent.FILL_IN_COMPONENT Intent.FILL_IN_PACKAGE Intent.FILL_IN_SOURCE_BOUNDS Intent.FILL_IN_SELECTOR Intent.FILL_IN_CLIP_DATA
Returns
The obtained PendingIntent
- Attributes
Remarks
Obtain a PendingIntent for launching the task constructed by this builder so far.
Android reference for android.app.TaskStackBuilder.getPendingIntent.
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
int: Private request code for the sender
- flags
- PendingIntentFlags
int: 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. Value is either 0 or a combination of the following: PendingIntent.FLAG_ONE_SHOT PendingIntent.FLAG_NO_CREATE PendingIntent.FLAG_CANCEL_CURRENT PendingIntent.FLAG_UPDATE_CURRENT PendingIntent.FLAG_IMMUTABLE PendingIntent.FLAG_MUTABLE PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT Intent.FILL_IN_ACTION Intent.FILL_IN_DATA Intent.FILL_IN_CATEGORIES Intent.FILL_IN_COMPONENT Intent.FILL_IN_PACKAGE Intent.FILL_IN_SOURCE_BOUNDS Intent.FILL_IN_SELECTOR Intent.FILL_IN_CLIP_DATA
- options
- Bundle
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.
Android reference for android.app.TaskStackBuilder.getPendingIntent.
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.