Share via


Looper.Prepare Method

Definition

Initialize the current thread as a looper.

[Android.Runtime.Register("prepare", "()V", "")]
public static void Prepare ();
[<Android.Runtime.Register("prepare", "()V", "")>]
static member Prepare : unit -> unit
Attributes

Remarks

Initialize the current thread as a looper. This gives you a chance to create handlers that then reference this looper, before actually starting the loop. Be sure to call #loop() after calling this method, and end it by calling #quit().

Java documentation for android.os.Looper.prepare().

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