Instrumentation.WaitForMonitor(Instrumentation+ActivityMonitor) 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.
[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
Instrumentation.ActivityMonitor: The ActivityMonitor to wait for.
Returns
The Activity object that matched the monitor.
- Attributes
Remarks
Wait for an existing ActivityMonitor to be hit. Interruptions do not end the wait. The monitor is removed from the activity monitor list after a matching activity is recorded.
Android reference for android.app.Instrumentation.waitForMonitor.
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.