Android.App.Instrumentation: Method Members

The methods of Android.App.Instrumentation are listed below. For a list of all members, see the Instrumentation Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

AddMonitor(Instrumentation.ActivityMonitor)
Add a new NoType:android/app/Instrumentation$ActivityMonitor;Href=../../../reference/android/app/Instrumentation.ActivityMonitor.html that will be checked whenever an activity is started.
AddMonitor(Android.Content.IntentFilter, Instrumentation.ActivityResult, bool) : Instrumentation.ActivityMonitor
A convenience wrapper for Instrumentation.AddMonitor(.ActivityMonitor) that creates an intent filter matching NoType:android/app/Instrumentation$ActivityMonitor;Href=../../../reference/android/app/Instrumentation.ActivityMonitor.html for you and returns it.
AddMonitor(string, Instrumentation.ActivityResult, bool) : Instrumentation.ActivityMonitor
A convenience wrapper for Instrumentation.AddMonitor(.ActivityMonitor) that creates a class matching NoType:android/app/Instrumentation$ActivityMonitor;Href=../../../reference/android/app/Instrumentation.ActivityMonitor.html for you and returns it.
CallActivityOnCreate(Activity, Android.OS.Bundle)
Perform calling of an activity's Activity.OnCreate(Android.OS.Bundle) method.
CallActivityOnCreate(Activity, Android.OS.Bundle, Android.OS.PersistableBundle)
Perform calling of an activity's Activity.OnCreate(Android.OS.Bundle) method.
CallActivityOnDestroy(Activity)
CallActivityOnNewIntent(Activity, Android.Content.Intent)
Perform calling of an activity's Activity.OnNewIntent(Android.Content.Intent) method.
CallActivityOnPause(Activity)
Perform calling of an activity's Activity.OnPause method.
CallActivityOnPostCreate(Activity, Android.OS.Bundle)
Perform calling of an activity's Activity.OnPostCreate(Android.OS.Bundle) method.
CallActivityOnPostCreate(Activity, Android.OS.Bundle, Android.OS.PersistableBundle)
Perform calling of an activity's Activity.OnPostCreate(Android.OS.Bundle) method.
CallActivityOnRestart(Activity)
Perform calling of an activity's Activity.OnRestart method.
CallActivityOnRestoreInstanceState(Activity, Android.OS.Bundle)
Perform calling of an activity's Activity.OnRestoreInstanceState(Android.OS.Bundle) method.
CallActivityOnRestoreInstanceState(Activity, Android.OS.Bundle, Android.OS.PersistableBundle)
Perform calling of an activity's Activity.OnRestoreInstanceState(Android.OS.Bundle) method.
CallActivityOnResume(Activity)
Perform calling of an activity's Activity.OnResume method.
CallActivityOnSaveInstanceState(Activity, Android.OS.Bundle)
Perform calling of an activity's Activity.OnSaveInstanceState(Android.OS.Bundle) method.
CallActivityOnSaveInstanceState(Activity, Android.OS.Bundle, Android.OS.PersistableBundle)
Perform calling of an activity's Activity.OnSaveInstanceState(Android.OS.Bundle) method.
CallActivityOnStart(Activity)
Perform calling of an activity's Activity.OnStart method.
CallActivityOnStop(Activity)
Perform calling of an activity's Activity.OnStop method.
CallActivityOnUserLeaving(Activity)
Perform calling of an activity's Activity.OnUserLeaveHint method.
CallApplicationOnCreate(Application)
Perform calling of the application's Application.OnCreate method.
CheckMonitorHit(Instrumentation.ActivityMonitor, int) : bool
Test whether an existing NoType:android/app/Instrumentation$ActivityMonitor;Href=../../../reference/android/app/Instrumentation.ActivityMonitor.html has been hit.
EndPerformanceSnapshot()
Finish(Result, Android.OS.Bundle)
Terminate instrumentation of the application.
InvokeContextMenuAction(Activity, int, Android.Views.MenuPerformFlags) : bool
Show the context menu for the currently focused view and executes a particular context menu item.
InvokeMenuActionSync(Activity, int, Android.Views.MenuPerformFlags) : bool
Execute a particular menu item.
NewActivity(Java.Lang.Class, Android.Content.Context, Android.OS.IBinder, Application, Android.Content.Intent, Android.Content.PM.ActivityInfo, Java.Lang.ICharSequence, Activity, string, Java.Lang.Object) : Activity
Documentation for this section has not yet been entered.
NewActivity(Java.Lang.Class, Android.Content.Context, Android.OS.IBinder, Application, Android.Content.Intent, Android.Content.PM.ActivityInfo, string, Activity, string, Java.Lang.Object) : Activity
Documentation for this section has not yet been entered.
NewActivity(Java.Lang.ClassLoader, string, Android.Content.Intent) : Activity
Perform instantiation of the process's Android.App.Activity object.
static
NewApplication(Java.Lang.Class, Android.Content.Context) : Application
Documentation for this section has not yet been entered.
NewApplication(Java.Lang.ClassLoader, string, Android.Content.Context) : Application
Perform instantiation of the process's Android.App.Application object.
OnCreate(Android.OS.Bundle)
Called when the instrumentation is starting, before any application code has been loaded.
OnDestroy()
Called when the instrumented application is stopping, after all of the normal application cleanup has occurred.
OnException(Java.Lang.Object, Java.Lang.Throwable) : bool
This is called whenever the system captures an unhandled exception that was thrown by the application.
OnStart()
Method where the instrumentation thread enters execution.
RemoveMonitor(Instrumentation.ActivityMonitor)
Remove an NoType:android/app/Instrumentation$ActivityMonitor;Href=../../../reference/android/app/Instrumentation.ActivityMonitor.html that was previously added with Instrumentation.AddMonitor(.ActivityMonitor).
RunOnMainSync(Java.Lang.IRunnable)
Execute a call on the application's main thread, blocking until it is complete.
RunOnMainSync(Action)
Documentation for this section has not yet been entered.
SendCharacterSync(Android.Views.Keycode)
Higher-level method for sending both the down and up key events for a particular character key code.
SendKeyDownUpSync(Android.Views.Keycode)
Sends an up and down key event sync to the currently focused window.
SendKeySync(Android.Views.KeyEvent)
Send a key event to the currently focused window/view and wait for it to be processed.
SendPointerSync(Android.Views.MotionEvent)
Dispatch a pointer event.
SendStatus(Result, Android.OS.Bundle)
Provide a status report about the application.
SendStringSync(string)
Sends the key events corresponding to the text to the app being instrumented.
SendTrackballEventSync(Android.Views.MotionEvent)
Dispatch a trackball event.
SetAutomaticPerformanceSnapshots()
SetInTouchMode(bool)
Force the global system in or out of touch mode.
Start()
Create and start a new thread in which to run instrumentation.
StartActivitySync(Android.Content.Intent) : Activity
Start a new activity and wait for it to begin running before returning.
StartAllocCounting()
StartPerformanceSnapshot()
StartProfiling()
This method will start profiling if isProfiling() returns true.
StopAllocCounting()
StopProfiling()
Stops profiling if isProfiling() returns true.
WaitForIdle(Java.Lang.IRunnable)
Schedule a callback for when the application's main thread goes idle (has no more events to process).
WaitForIdle(Action)
Documentation for this section has not yet been entered.
WaitForIdleSync()
Synchronously wait for the application to be idle.
WaitForMonitor(Instrumentation.ActivityMonitor) : Activity
Wait for an existing NoType:android/app/Instrumentation$ActivityMonitor;Href=../../../reference/android/app/Instrumentation.ActivityMonitor.html to be hit.
WaitForMonitorWithTimeout(Instrumentation.ActivityMonitor, long) : Activity
Wait for an existing NoType:android/app/Instrumentation$ActivityMonitor;Href=../../../reference/android/app/Instrumentation.ActivityMonitor.html to be hit till the timeout expires.