次の方法で共有


Instrumentation.CheckMonitorHit Method

Definition

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

The ActivityMonitor to check.

minHits
Int32

The minimum number of hits required.

Returns

True if the hit count has been reached, else false.

Attributes

Remarks

Java documentation for android.app.Instrumentation.checkMonitorHit(android.app.ActivityMonitor, int).

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

See also

  • <xref:Android.App.Instrumentation.AddMonitor(.ActivityMonitor)>