See Also: Message
public sealed class Message : Object, IParcelable, IDisposable
Defines a message containing a description and arbitrary data object that can be sent to a Handler. This object contains two extra int fields and an extra object field that allow you to not do allocations in many cases.
While the constructor of Message is public, the best way to get one of these is to call Message.Obtain or one of the Handler.ObtainMessage methods, which will pull them from a pool of recycled objects.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1
The members of Android.OS.Message are listed below.
See Also: Object
|Arg1||Int32. arg1 and arg2 are lower-cost alternatives to using Message.Data if you only need to store a few integer values.|
|Arg2||Int32. arg1 and arg2 are lower-cost alternatives to using Message.Data if you only need to store a few integer values.|
|[read-only]||Callback||IRunnable. Retrieve callback object that will execute when this message is handled.|
|Data||Bundle. Obtains a Bundle of arbitrary data associated with this event, lazily creating it if necessary.|
|Obj||Object. An arbitrary object to send to the recipient.|
|ReplyTo||Messenger. Optional Messenger where replies to this message can be sent.|
|SendingUid||Int32. Optional field indicating the uid that sent the message.|
|Target||Handler. Retrieve the a Handler implementation that will receive this message.|
|What||Int32. User-defined message code so that the recipient can identify what this message is about.|
|[read-only]||When||Int64. Return the targeted delivery time of this message, in milliseconds.|
Make this message like o.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Return a new Message instance from the global pool.
Same as Message.Obtain, but sets the value for the target member on the Message returned.
Same as Message.Obtain, but copies the values of an existing message (including its target) into the new one.
Same as Message.Obtain(Handler), but assigns a callback Runnable on the Message that is returned.
Same as Message.Obtain, but sets the values for both target and what members on the Message.
|Obtain(Handler, Int32, Object)|
Same as Message.Obtain, but sets the values of the target, what, and obj members.
|Obtain(Handler, Int32, Int32, Int32)|
Same as Message.Obtain, but sets the values of the target, what, arg1, and arg2 members.
|Obtain(Handler, Int32, Int32, Int32, Object)|
Same as Message.Obtain, but sets the values of the target, what, arg1, arg2, and obj members.
Like getData(), but does not lazily create the Bundle.
Return a Message instance to the global pool.
Sends this Message to the Handler specified by Message.Target.
Flatten this object in to a Parcel.