android.app
Class PendingIntent

java.lang.Object
  extended by android.app.PendingIntent
All Implemented Interfaces:
Parcelable

public final class PendingIntent
extends Object
implements Parcelable


Nested Class Summary
static class PendingIntent.CanceledException
           
static interface PendingIntent.OnFinished
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<PendingIntent> CREATOR
           
static int FLAG_CANCEL_CURRENT
           
static int FLAG_NO_CREATE
           
static int FLAG_ONE_SHOT
           
static int FLAG_UPDATE_CURRENT
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Method Summary
 void cancel()
           
 int describeContents()
           
 boolean equals(Object otherObj)
           
static PendingIntent getActivities(Context context, int requestCode, Intent[] intents, int flags)
           
static PendingIntent getActivity(Context context, int requestCode, Intent intent, int flags)
           
static PendingIntent getBroadcast(Context context, int requestCode, Intent intent, int flags)
           
 IntentSender getIntentSender()
           
static PendingIntent getService(Context context, int requestCode, Intent intent, int flags)
           
 String getTargetPackage()
           
 int hashCode()
           
static PendingIntent readPendingIntentOrNullFromParcel(Parcel in)
           
 void send()
           
 void send(Context context, int code, Intent intent)
           
 void send(Context context, int code, Intent intent, PendingIntent.OnFinished onFinished, Handler handler)
           
 void send(Context context, int code, Intent intent, PendingIntent.OnFinished onFinished, Handler handler, String requiredPermission)
           
 void send(int code)
           
 void send(int code, PendingIntent.OnFinished onFinished, Handler handler)
           
 String toString()
           
static void writePendingIntentOrNullToParcel(PendingIntent sender, Parcel out)
           
 void writeToParcel(Parcel out, int flags)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FLAG_ONE_SHOT

public static final int FLAG_ONE_SHOT
See Also:
Constant Field Values

FLAG_NO_CREATE

public static final int FLAG_NO_CREATE
See Also:
Constant Field Values

FLAG_CANCEL_CURRENT

public static final int FLAG_CANCEL_CURRENT
See Also:
Constant Field Values

FLAG_UPDATE_CURRENT

public static final int FLAG_UPDATE_CURRENT
See Also:
Constant Field Values

CREATOR

public static final Parcelable.Creator<PendingIntent> CREATOR
Method Detail

getActivity

public static PendingIntent getActivity(Context context,
                                        int requestCode,
                                        Intent intent,
                                        int flags)

getActivities

public static PendingIntent getActivities(Context context,
                                          int requestCode,
                                          Intent[] intents,
                                          int flags)

getBroadcast

public static PendingIntent getBroadcast(Context context,
                                         int requestCode,
                                         Intent intent,
                                         int flags)

getService

public static PendingIntent getService(Context context,
                                       int requestCode,
                                       Intent intent,
                                       int flags)

getIntentSender

public IntentSender getIntentSender()

cancel

public void cancel()

send

public void send()
          throws PendingIntent.CanceledException
Throws:
PendingIntent.CanceledException

send

public void send(int code)
          throws PendingIntent.CanceledException
Throws:
PendingIntent.CanceledException

send

public void send(Context context,
                 int code,
                 Intent intent)
          throws PendingIntent.CanceledException
Throws:
PendingIntent.CanceledException

send

public void send(int code,
                 PendingIntent.OnFinished onFinished,
                 Handler handler)
          throws PendingIntent.CanceledException
Throws:
PendingIntent.CanceledException

send

public void send(Context context,
                 int code,
                 Intent intent,
                 PendingIntent.OnFinished onFinished,
                 Handler handler)
          throws PendingIntent.CanceledException
Throws:
PendingIntent.CanceledException

send

public void send(Context context,
                 int code,
                 Intent intent,
                 PendingIntent.OnFinished onFinished,
                 Handler handler,
                 String requiredPermission)
          throws PendingIntent.CanceledException
Throws:
PendingIntent.CanceledException

getTargetPackage

public String getTargetPackage()

equals

public boolean equals(Object otherObj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel out,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

writePendingIntentOrNullToParcel

public static void writePendingIntentOrNullToParcel(PendingIntent sender,
                                                    Parcel out)

readPendingIntentOrNullFromParcel

public static PendingIntent readPendingIntentOrNullFromParcel(Parcel in)


Copyright © 2008-2012. All Rights Reserved.