Looper.PrepareMainLooper 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, 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.