Looper.PrepareMainLooper Method

Definition

Initialize the current thread as a looper, marking it as an application's main looper.

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

Remarks

Initialize the current thread as a looper, marking it as an application's main looper. See also: #prepare()

This member is deprecated. The main looper for your application is created by the Android environment, so you should never need to call this function yourself.

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

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