Java android.os Message fields, constructors, methods, implement or subclass

Example usage for Java android.os Message fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os Message.

The text is from its open source code.

Subclass

android.os.Message has subclasses.
Click this link to see all its subclasses.

Constructor

Message()
Constructor (but the preferred way to get a Message is to call #obtain() Message.obtain() ).

Method

BundlegetData()
Obtains a Bundle of arbitrary data associated with this event, lazily creating it if necessary.
longgetWhen()
Return the targeted delivery time of this message, in milliseconds.
Messageobtain(Handler h, Runnable callback)
Same as #obtain(Handler) , but assigns a callback Runnable on the Message that is returned.
Messageobtain(Handler h, int what)
Same as #obtain() , but sets the values for both target and what members on the Message.
Messageobtain()
Return a new Message instance from the global pool.
Messageobtain(Handler h, int what, Object obj)
Same as #obtain() , but sets the values of the target, what, and obj members.
Messageobtain(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.
Messageobtain(Handler h, int what, int arg1, int arg2)
Same as #obtain() , but sets the values of the target, what, arg1, and arg2 members.
Messageobtain(Message orig)
Same as #obtain() , but copies the values of an existing message (including its target) into the new one.
Messageobtain(Handler h)
Same as #obtain() , but sets the value for the target member on the Message returned.
BundlepeekData()
Like getData(), but does not lazily create the Bundle.
voidrecycle()
Return a Message instance to the global pool.
voidsendToTarget()
Sends this Message to the Handler specified by #getTarget .
voidsetData(Bundle data)
Sets a Bundle of arbitrary data values.
voidsetTarget(Handler target)
StringtoString()