Looper.Prepare Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.