Instrumentation.CheckMonitorHit 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.
Test whether an existing ActivityMonitor has been hit.
[Android.Runtime.Register("checkMonitorHit", "(Landroid/app/Instrumentation$ActivityMonitor;I)Z", "GetCheckMonitorHit_Landroid_app_Instrumentation_ActivityMonitor_IHandler")]
public virtual bool CheckMonitorHit(Android.App.Instrumentation.ActivityMonitor? monitor, int minHits);
[<Android.Runtime.Register("checkMonitorHit", "(Landroid/app/Instrumentation$ActivityMonitor;I)Z", "GetCheckMonitorHit_Landroid_app_Instrumentation_ActivityMonitor_IHandler")>]
abstract member CheckMonitorHit : Android.App.Instrumentation.ActivityMonitor * int -> bool
override this.CheckMonitorHit : Android.App.Instrumentation.ActivityMonitor * int -> bool
Parameters
- monitor
- Instrumentation.ActivityMonitor
Instrumentation.ActivityMonitor: The ActivityMonitor to check.
- minHits
- Int32
int: The minimum number of hits required.
Returns
True if the hit count has been reached, else false.
- Attributes
Remarks
Test whether an existing ActivityMonitor has been hit. If the monitor has been hit at least minHits times, then it will be removed from the activity monitor list and true returned. Otherwise it is left as-is and false is returned.
See also:
Android reference for android.app.Instrumentation.checkMonitorHit.
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.