Partager via


HandlerThread.Looper Property

Definition

This method returns the Looper associated with this thread.

public virtual Android.OS.Looper? Looper { [Android.Runtime.Register("getLooper", "()Landroid/os/Looper;", "GetGetLooperHandler")] get; }
[<get: Android.Runtime.Register("getLooper", "()Landroid/os/Looper;", "GetGetLooperHandler")>]
member this.Looper : Android.OS.Looper

Property Value

The looper.

Attributes

Remarks

This method returns the Looper associated with this thread. If this thread not been started or for any reason isAlive() returns false, this method will return null. If this thread has been started, this method will block until the looper has been initialized.

Java documentation for android.os.HandlerThread.getLooper().

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