Android.OS.Message Members

The members of Android.OS.Message are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

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

Public Properties

Arg1int. arg1 and arg2 are lower-cost alternatives to using Message.Data if you only need to store a few integer values.
Arg2int. arg1 and arg2 are lower-cost alternatives to using Message.Data if you only need to store a few integer values.
[read-only]
CallbackJava.Lang.IRunnable. Retrieve callback object that will execute when this message is handled.
[read-only]
static
CreatorIParcelableCreator.
DataBundle. Obtains a Bundle of arbitrary data associated with this event, lazily creating it if necessary.
ObjJava.Lang.Object. An arbitrary object to send to the recipient.
ReplyToMessenger. Optional Messenger where replies to this message can be sent.
SendingUidint. Optional field indicating the uid that sent the message.
TargetHandler. Retrieve the a Android.OS.Handler implementation that will receive this message.
Whatint. User-defined message code so that the recipient can identify what this message is about.
[read-only]
Whenlong. Return the targeted delivery time of this message, in milliseconds.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

CopyFrom(Message)
Make this message like o.
DescribeContents() : int
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
static
Obtain() : Message
Return a new Message instance from the global pool.
static
Obtain(Handler) : Message
Same as Message.Obtain, but sets the value for the target member on the Message returned.
static
Obtain(Message) : Message
Same as Message.Obtain, but copies the values of an existing message (including its target) into the new one.
static
Obtain(Handler, Java.Lang.IRunnable) : Message
Same as Message.Obtain(Handler), but assigns a callback Runnable on the Message that is returned.
static
Obtain(Handler, Action) : Message
Documentation for this section has not yet been entered.
static
Obtain(Handler, int) : Message
Same as Message.Obtain, but sets the values for both target and what members on the Message.
static
Obtain(Handler, int, Java.Lang.Object) : Message
Same as Message.Obtain, but sets the values of the target, what, and obj members.
static
Obtain(Handler, int, int, int) : Message
Same as Message.Obtain, but sets the values of the target, what, arg1, and arg2 members.
static
Obtain(Handler, int, int, int, Java.Lang.Object) : Message
Same as Message.Obtain, but sets the values of the target, what, arg1, arg2, and obj members.
PeekData() : Bundle
Like getData(), but does not lazily create the Bundle.
Recycle()
Return a Message instance to the global pool.
SendToTarget()
Sends this Message to the Handler specified by Message.Target.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.