Instrumentation.WaitForMonitorWithTimeout Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.