Example usage for Java android.os Message fields, constructors, methods, implement or subclass
The text is from its open source code.
Message() Constructor (but the preferred way to get a Message is to call #obtain() Message.obtain() ). |
Bundle | getData() Obtains a Bundle of arbitrary data associated with this event, lazily creating it if necessary. |
long | getWhen() Return the targeted delivery time of this message, in milliseconds. |
Message | obtain(Handler h, Runnable callback) Same as #obtain(Handler) , but assigns a callback Runnable on the Message that is returned. |
Message | obtain(Handler h, int what) Same as #obtain() , but sets the values for both target and what members on the Message. |
Message | obtain() Return a new Message instance from the global pool. |
Message | obtain(Handler h, int what, Object obj) Same as #obtain() , but sets the values of the target, what, and obj members. |
Message | obtain(Handler h, int what, int arg1, int arg2, Object obj) Same as #obtain() , but sets the values of the target, what, arg1, arg2, and obj members. |
Message | obtain(Handler h, int what, int arg1, int arg2) Same as #obtain() , but sets the values of the target, what, arg1, and arg2 members. |
Message | obtain(Message orig) Same as #obtain() , but copies the values of an existing message (including its target) into the new one. |
Message | obtain(Handler h) Same as #obtain() , but sets the value for the target member on the Message returned. |
Bundle | peekData() Like getData(), but does not lazily create the Bundle. |
void | recycle() Return a Message instance to the global pool. |
void | sendToTarget() Sends this Message to the Handler specified by #getTarget . |
void | setData(Bundle data) Sets a Bundle of arbitrary data values. |
void | setTarget(Handler target) |
String | toString() |