@Implements(value=android.app.PendingIntent.class) public class ShadowPendingIntent extends java.lang.Object
Constructor and Description |
---|
ShadowPendingIntent() |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
boolean |
equals(java.lang.Object o) |
static android.app.PendingIntent |
getActivities(android.content.Context context,
int requestCode,
android.content.Intent[] intents,
int flags) |
static android.app.PendingIntent |
getActivities(android.content.Context context,
int requestCode,
android.content.Intent[] intents,
int flags,
android.os.Bundle options) |
static android.app.PendingIntent |
getActivity(android.content.Context context,
int requestCode,
android.content.Intent intent,
int flags) |
static android.app.PendingIntent |
getActivity(android.content.Context context,
int requestCode,
android.content.Intent intent,
int flags,
android.os.Bundle options) |
static android.app.PendingIntent |
getBroadcast(android.content.Context context,
int requestCode,
android.content.Intent intent,
int flags) |
java.lang.String |
getCreatorPackage() |
int |
getFlags() |
android.content.IntentSender |
getIntentSender() |
int |
getRequestCode() |
android.content.Context |
getSavedContext() |
android.content.Intent |
getSavedIntent()
This returns the last Intent in the Intent[] to be delivered when the PendingIntent is sent.
|
android.content.Intent[] |
getSavedIntents()
This method is particularly useful for PendingIntents created with multiple Intents:
getActivities(Context, int, Intent[], int) getActivities(Context, int, Intent[], int, Bundle) |
static android.app.PendingIntent |
getService(android.content.Context context,
int requestCode,
android.content.Intent intent,
int flags) |
java.lang.String |
getTargetPackage() |
int |
hashCode() |
boolean |
isActivityIntent() |
boolean |
isBroadcastIntent() |
boolean |
isCanceled() |
boolean |
isServiceIntent() |
static void |
reset() |
void |
send() |
void |
send(android.content.Context context,
int code,
android.content.Intent intent) |
void |
setCreatorPackage(java.lang.String creatorPackage) |
@Implementation public static android.app.PendingIntent getActivity(android.content.Context context, int requestCode, android.content.Intent intent, int flags)
@Implementation public static android.app.PendingIntent getActivity(android.content.Context context, int requestCode, android.content.Intent intent, int flags, android.os.Bundle options)
@Implementation public static android.app.PendingIntent getActivities(android.content.Context context, int requestCode, android.content.Intent[] intents, int flags)
@Implementation public static android.app.PendingIntent getActivities(android.content.Context context, int requestCode, android.content.Intent[] intents, int flags, android.os.Bundle options)
@Implementation public static android.app.PendingIntent getBroadcast(android.content.Context context, int requestCode, android.content.Intent intent, int flags)
@Implementation public static android.app.PendingIntent getService(android.content.Context context, int requestCode, android.content.Intent intent, int flags)
@Implementation public void cancel()
@Implementation public void send() throws android.app.PendingIntent.CanceledException
android.app.PendingIntent.CanceledException
@Implementation public void send(android.content.Context context, int code, android.content.Intent intent) throws android.app.PendingIntent.CanceledException
android.app.PendingIntent.CanceledException
@Implementation public android.content.IntentSender getIntentSender()
public boolean isActivityIntent()
true
iff sending this PendingIntent will start an activitypublic boolean isBroadcastIntent()
true
iff sending this PendingIntent will broadcast an Intentpublic boolean isServiceIntent()
true
iff sending this PendingIntent will start a servicepublic android.content.Context getSavedContext()
public android.content.Intent getSavedIntent()
This returns the last Intent in the Intent[] to be delivered when the PendingIntent is sent. This method is particularly useful for PendingIntents created with a single Intent:
public android.content.Intent[] getSavedIntents()
This method is particularly useful for PendingIntents created with multiple Intents:
public boolean isCanceled()
public int getRequestCode()
public int getFlags()
@Implementation public java.lang.String getTargetPackage()
@Implementation public java.lang.String getCreatorPackage()
public void setCreatorPackage(java.lang.String creatorPackage)
@Implementation public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
@Implementation public int hashCode()
hashCode
in class java.lang.Object
@Resetter public static void reset()