Compartilhar via


Instrumentation.AcquireLooperManager(Looper) Method

Definition

Takes control of the execution of messages on the specified looper until TestLooperManager#release is called.

[Android.Runtime.Register("acquireLooperManager", "(Landroid/os/Looper;)Landroid/os/TestLooperManager;", "GetAcquireLooperManager_Landroid_os_Looper_Handler", ApiSince=26)]
public virtual Android.OS.TestLooperManager? AcquireLooperManager (Android.OS.Looper? looper);
[<Android.Runtime.Register("acquireLooperManager", "(Landroid/os/Looper;)Landroid/os/TestLooperManager;", "GetAcquireLooperManager_Landroid_os_Looper_Handler", ApiSince=26)>]
abstract member AcquireLooperManager : Android.OS.Looper -> Android.OS.TestLooperManager
override this.AcquireLooperManager : Android.OS.Looper -> Android.OS.TestLooperManager

Parameters

looper
Looper

Returns

Attributes

Remarks

Takes control of the execution of messages on the specified looper until TestLooperManager#release is called.

Java documentation for android.app.Instrumentation.acquireLooperManager(android.os.Looper).

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