Język

MockContext.MainLooper Property

Definition

Return the Looper for the main thread of the current process.

public override Android.OS.Looper? MainLooper { [Android.Runtime.Register("getMainLooper", "()Landroid/os/Looper;", "GetGetMainLooperHandler")] get; }
[<get: Android.Runtime.Register("getMainLooper", "()Landroid/os/Looper;", "GetGetMainLooperHandler")>]
member this.MainLooper : Android.OS.Looper

Property Value

No value is provided by the default mock. Its getter throws UnsupportedOperationException; override this property to supply a main looper.

Attributes

Remarks

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