Instrumentation.WaitForMonitorWithTimeout Method

Definition

Wait for an existing ActivityMonitor to be hit till the timeout expires.

[Android.Runtime.Register("waitForMonitorWithTimeout", "(Landroid/app/Instrumentation$ActivityMonitor;J)Landroid/app/Activity;", "GetWaitForMonitorWithTimeout_Landroid_app_Instrumentation_ActivityMonitor_JHandler")]
public virtual Android.App.Activity? WaitForMonitorWithTimeout (Android.App.Instrumentation.ActivityMonitor? monitor, long timeOut);
[<Android.Runtime.Register("waitForMonitorWithTimeout", "(Landroid/app/Instrumentation$ActivityMonitor;J)Landroid/app/Activity;", "GetWaitForMonitorWithTimeout_Landroid_app_Instrumentation_ActivityMonitor_JHandler")>]
abstract member WaitForMonitorWithTimeout : Android.App.Instrumentation.ActivityMonitor * int64 -> Android.App.Activity
override this.WaitForMonitorWithTimeout : Android.App.Instrumentation.ActivityMonitor * int64 -> Android.App.Activity

Parameters

monitor
Instrumentation.ActivityMonitor

The ActivityMonitor to wait for.

timeOut
Int64

The timeout value in milliseconds.

Returns

The Activity object that matched the monitor.

Attributes

Remarks

Java documentation for android.app.Instrumentation.waitForMonitorWithTimeout(android.app.ActivityMonitor, long).

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