Example usage for Java android.app PendingIntent fields, constructors, methods, implement or subclass
The text is from its open source code.
int | FLAG_ONE_SHOT Flag indicating that this PendingIntent can be used only once. |
int | FLAG_NO_CREATE Flag indicating that if the described PendingIntent does not already exist, then simply return null instead of creating it. |
int | FLAG_CANCEL_CURRENT Flag indicating that if the described PendingIntent already exists, the current one should be canceled before generating a new one. |
int | FLAG_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.Creator | CREATOR |
void | cancel() Cancel a currently active PendingIntent. |
PendingIntent | getActivities(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. |
PendingIntent | getActivity(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) . |
PendingIntent | getBroadcast(Context context, int requestCode, Intent intent, @Flags int flags) Retrieve a PendingIntent that will perform a broadcast, like calling Context#sendBroadcast(Intent) Context.sendBroadcast() . |
Class> | getClass() Returns the runtime class of this Object . |
String | getCreatorPackage() Return the package name of the application that created this PendingIntent, that is the identity under which you will actually be sending the Intent. |
IntentSender | getIntentSender() Retrieve a IntentSender object that wraps the existing sender of the PendingIntent |
PendingIntent | getService(Context context, int requestCode, @NonNull Intent intent, @Flags int flags) Retrieve a PendingIntent that will start a service, like calling Context#startService Context.startService() . |
String | getTargetPackage() |
void | send() Perform the operation associated with this PendingIntent. |
void | send(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. |
void | send(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. |
void | send(int code) Perform the operation associated with this PendingIntent. |