Message.Recycle Method

Definition

Return a Message instance to the global pool.

[Android.Runtime.Register("recycle", "()V", "")]
public void Recycle ();
[<Android.Runtime.Register("recycle", "()V", "")>]
member this.Recycle : unit -> unit
Attributes

Remarks

Return a Message instance to the global pool.

You MUST NOT touch the Message after calling this function because it has effectively been freed. It is an error to recycle a message that is currently enqueued or that is in the process of being delivered to a Handler.

Java documentation for android.os.Message.recycle().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to