Instrumentation.WaitForMonitor(Instrumentation+ActivityMonitor) Method

Definition

Wait for an existing ActivityMonitor to be hit.

[Android.Runtime.Register("waitForMonitor", "(Landroid/app/Instrumentation$ActivityMonitor;)Landroid/app/Activity;", "GetWaitForMonitor_Landroid_app_Instrumentation_ActivityMonitor_Handler")]
public virtual Android.App.Activity? WaitForMonitor (Android.App.Instrumentation.ActivityMonitor? monitor);
[<Android.Runtime.Register("waitForMonitor", "(Landroid/app/Instrumentation$ActivityMonitor;)Landroid/app/Activity;", "GetWaitForMonitor_Landroid_app_Instrumentation_ActivityMonitor_Handler")>]
abstract member WaitForMonitor : Android.App.Instrumentation.ActivityMonitor -> Android.App.Activity
override this.WaitForMonitor : Android.App.Instrumentation.ActivityMonitor -> Android.App.Activity

Parameters

monitor
Instrumentation.ActivityMonitor

The ActivityMonitor to wait for.

Returns

The Activity object that matched the monitor.

Attributes

Remarks

Java documentation for android.app.Instrumentation.waitForMonitor(android.app.ActivityMonitor).

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