android.os
Class Message

java.lang.Object
  extended by android.os.Message
All Implemented Interfaces:
Parcelable

public final class Message
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
 int arg1
           
 int arg2
           
static Parcelable.Creator<Message> CREATOR
           
 Object obj
           
 Messenger replyTo
           
 int what
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Message()
           
 
Method Summary
 void copyFrom(Message o)
           
 int describeContents()
           
 Runnable getCallback()
           
 Bundle getData()
           
 Handler getTarget()
           
 long getWhen()
           
static Message obtain()
           
static Message obtain(Handler h)
           
static Message obtain(Handler h, int what)
           
static Message obtain(Handler h, int what, int arg1, int arg2)
           
static Message obtain(Handler h, int what, int arg1, int arg2, Object obj)
           
static Message obtain(Handler h, int what, Object obj)
           
static Message obtain(Handler h, Runnable callback)
           
static Message obtain(Message orig)
           
 Bundle peekData()
           
 void recycle()
           
 void sendToTarget()
           
 void setData(Bundle data)
           
 void setTarget(Handler target)
           
 String toString()
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

what

public int what

arg1

public int arg1

arg2

public int arg2

obj

public Object obj

replyTo

public Messenger replyTo

CREATOR

public static final Parcelable.Creator<Message> CREATOR
Constructor Detail

Message

public Message()
Method Detail

obtain

public static Message obtain()

obtain

public static Message obtain(Message orig)

obtain

public static Message obtain(Handler h)

obtain

public static Message obtain(Handler h,
                             Runnable callback)

obtain

public static Message obtain(Handler h,
                             int what)

obtain

public static Message obtain(Handler h,
                             int what,
                             Object obj)

obtain

public static Message obtain(Handler h,
                             int what,
                             int arg1,
                             int arg2)

obtain

public static Message obtain(Handler h,
                             int what,
                             int arg1,
                             int arg2,
                             Object obj)

recycle

public void recycle()

copyFrom

public void copyFrom(Message o)

getWhen

public long getWhen()

setTarget

public void setTarget(Handler target)

getTarget

public Handler getTarget()

getCallback

public Runnable getCallback()

getData

public Bundle getData()

peekData

public Bundle peekData()

setData

public void setData(Bundle data)

sendToTarget

public void sendToTarget()

toString

public String toString()
Overrides:
toString in class Object

describeContents

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

writeToParcel

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


Copyright © 2008-2012. All Rights Reserved.