@Implements(value=android.app.PendingIntent.class) public class ShadowPendingIntent extends java.lang.Object
Constructor and Description |
---|
ShadowPendingIntent() |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel() |
boolean |
equals(java.lang.Object o) |
protected static android.app.PendingIntent |
getActivities(android.content.Context context,
int requestCode,
android.content.Intent[] intents,
int flags) |
protected static android.app.PendingIntent |
getActivities(android.content.Context context,
int requestCode,
android.content.Intent[] intents,
int flags,
android.os.Bundle options) |
protected static android.app.PendingIntent |
getActivity(android.content.Context context,
int requestCode,
android.content.Intent intent,
int flags) |
protected static android.app.PendingIntent |
getActivity(android.content.Context context,
int requestCode,
android.content.Intent intent,
int flags,
android.os.Bundle options) |
protected static android.app.PendingIntent |
getBroadcast(android.content.Context context,
int requestCode,
android.content.Intent intent,
int flags) |
protected java.lang.String |
getCreatorPackage() |
int |
getFlags() |
protected static android.app.PendingIntent |
getForegroundService(android.content.Context context,
int requestCode,
android.content.Intent intent,
int flags) |
protected 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) |
protected static android.app.PendingIntent |
getService(android.content.Context context,
int requestCode,
android.content.Intent intent,
int flags) |
protected java.lang.String |
getTargetPackage() |
int |
hashCode() |
boolean |
isActivityIntent() |
boolean |
isBroadcastIntent() |
boolean |
isCanceled() |
boolean |
isForegroundServiceIntent() |
boolean |
isServiceIntent() |
static void |
reset() |
protected void |
send() |
protected void |
send(android.content.Context context,
int code,
android.content.Intent intent) |
protected void |
send(android.content.Context context,
int code,
android.content.Intent intent,
android.app.PendingIntent.OnFinished onFinished,
android.os.Handler handler) |
protected void |
send(android.content.Context context,
int code,
android.content.Intent intent,
android.app.PendingIntent.OnFinished onFinished,
android.os.Handler handler,
java.lang.String requiredPermission) |
protected void |
send(android.content.Context context,
int code,
android.content.Intent intent,
android.app.PendingIntent.OnFinished onFinished,
android.os.Handler handler,
java.lang.String requiredPermission,
android.os.Bundle options) |
protected void |
send(int code,
android.app.PendingIntent.OnFinished onFinished,
android.os.Handler handler) |
void |
setCreatorPackage(java.lang.String creatorPackage) |
@Implementation protected static android.app.PendingIntent getActivity(android.content.Context context, int requestCode, android.content.Intent intent, int flags)
@Implementation protected static android.app.PendingIntent getActivity(android.content.Context context, int requestCode, android.content.Intent intent, int flags, android.os.Bundle options)
@Implementation protected static android.app.PendingIntent getActivities(android.content.Context context, int requestCode, android.content.Intent[] intents, int flags)
@Implementation protected static android.app.PendingIntent getActivities(android.content.Context context, int requestCode, android.content.Intent[] intents, int flags, android.os.Bundle options)
@Implementation protected static android.app.PendingIntent getBroadcast(android.content.Context context, int requestCode, android.content.Intent intent, int flags)
@Implementation protected static android.app.PendingIntent getService(android.content.Context context, int requestCode, android.content.Intent intent, int flags)
@Implementation(minSdk=26) protected static android.app.PendingIntent getForegroundService(android.content.Context context, int requestCode, android.content.Intent intent, int flags)
@Implementation protected void cancel()
@Implementation protected void send() throws android.app.PendingIntent.CanceledException
android.app.PendingIntent.CanceledException
@Implementation protected void send(int code, android.app.PendingIntent.OnFinished onFinished, android.os.Handler handler) throws android.app.PendingIntent.CanceledException
android.app.PendingIntent.CanceledException
@Implementation protected void send(android.content.Context context, int code, android.content.Intent intent) throws android.app.PendingIntent.CanceledException
android.app.PendingIntent.CanceledException
@Implementation protected void send(android.content.Context context, int code, android.content.Intent intent, android.app.PendingIntent.OnFinished onFinished, android.os.Handler handler) throws android.app.PendingIntent.CanceledException
android.app.PendingIntent.CanceledException
@Implementation protected void send(android.content.Context context, int code, android.content.Intent intent, android.app.PendingIntent.OnFinished onFinished, android.os.Handler handler, java.lang.String requiredPermission) throws android.app.PendingIntent.CanceledException
android.app.PendingIntent.CanceledException
@Implementation(minSdk=23) protected void send(android.content.Context context, int code, android.content.Intent intent, android.app.PendingIntent.OnFinished onFinished, android.os.Handler handler, java.lang.String requiredPermission, android.os.Bundle options) throws android.app.PendingIntent.CanceledException
android.app.PendingIntent.CanceledException
@Implementation protected 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 boolean isForegroundServiceIntent()
true
iff sending this PendingIntent will start a foreground 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 protected java.lang.String getTargetPackage()
@Implementation(minSdk=17) protected 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()