See Also: Instrumentation+ActivityMonitor
public class Instrumentation.ActivityMonitor : Object
Information about a particular kind of Intent that is being monitored. An instance of this class is added to the current instrumentation through Instrumentation.AddMonitor(Instrumentation+ActivityMonitor); after being added, when a new activity is being started the monitor will be checked and, if matching, its hit count updated and (optionally) the call stopped and a canned result returned.
An ActivityMonitor can also be used to look for the creation of an activity, through the Instrumentation+ActivityMonitor.WaitForActivity method. This will return after a matching activity has been created with that activity object.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1
The members of Android.App.Instrumentation.ActivityMonitor are listed below.
See Also: Object
|Create a new ActivityMonitor that looks for a particular kind of intent to be started.|
|Create a new ActivityMonitor that looks for a specific activity class to be started.|
|[read-only]||Filter||IntentFilter. Retrieve the filter associated with this ActivityMonitor.|
|[read-only]||Hits||Int32. Retrieve the number of times the monitor has been hit so far.|
|[read-only]||IsBlocking||Boolean. Check whether this monitor blocks activity starts (not allowing the actual activity to run) or allows them to execute normally.|
|[read-only]||LastActivity||Activity. Retrieve the most recent activity class that was seen by this monitor.|
|[read-only]||Result||Instrumentation+ActivityResult. Retrieve the result associated with this ActivityMonitor, or null if none.|