Java android.app PendingIntent fields, constructors, methods, implement or subclass

Example usage for Java android.app PendingIntent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.app PendingIntent.

The text is from its open source code.

Field

intFLAG_ONE_SHOT
Flag indicating that this PendingIntent can be used only once.
intFLAG_NO_CREATE
Flag indicating that if the described PendingIntent does not already exist, then simply return null instead of creating it.
intFLAG_CANCEL_CURRENT
Flag indicating that if the described PendingIntent already exists, the current one should be canceled before generating a new one.
intFLAG_UPDATE_CURRENT
Flag indicating that if the described PendingIntent already exists, then keep it but replace its extra data with what is in this new Intent.
Parcelable.CreatorCREATOR

Constructor

Method

voidcancel()
Cancel a currently active PendingIntent.
PendingIntentgetActivities(Context context, int requestCode, @NonNull Intent[] intents, @Flags int flags)
Like #getActivity(Context,int,Intent,int) , but allows an array of Intents to be supplied.
PendingIntentgetActivity(Context context, int requestCode, Intent intent, @Flags int flags)
Retrieve a PendingIntent that will start a new activity, like calling Context#startActivity(Intent) Context.startActivity(Intent) .
PendingIntentgetBroadcast(Context context, int requestCode, Intent intent, @Flags int flags)
Retrieve a PendingIntent that will perform a broadcast, like calling Context#sendBroadcast(Intent) Context.sendBroadcast() .
ClassgetClass()
Returns the runtime class of this Object .
StringgetCreatorPackage()
Return the package name of the application that created this PendingIntent, that is the identity under which you will actually be sending the Intent.
IntentSendergetIntentSender()
Retrieve a IntentSender object that wraps the existing sender of the PendingIntent
PendingIntentgetService(Context context, int requestCode, @NonNull Intent intent, @Flags int flags)
Retrieve a PendingIntent that will start a service, like calling Context#startService Context.startService() .
StringgetTargetPackage()
voidsend()
Perform the operation associated with this PendingIntent.
voidsend(Context context, int code, @Nullable Intent intent)
Perform the operation associated with this PendingIntent, allowing the caller to specify information about the Intent to use.
voidsend(int code, @Nullable OnFinished onFinished, @Nullable Handler handler)
Perform the operation associated with this PendingIntent, allowing the caller to be notified when the send has completed.
voidsend(int code)
Perform the operation associated with this PendingIntent.