Android Guides | Samples

Android.App.UiAutomation.SetRunAsMonkey Method

Sets whether this UiAutomation to run in a "monkey" mode.

Syntax

[Android.Runtime.Register("setRunAsMonkey", "(Z)V", "")]
public Void SetRunAsMonkey (Boolean enable)

See Also

Parameters

enable
whether to run in a "monkey" mode or not. Default is not.

Remarks

Sets whether this UiAutomation to run in a "monkey" mode. Applications can query whether they are executed in a "monkey" mode, i.e. run by a test framework, and avoid doing potentially undesirable actions such as calling 911 or posting on public forums etc.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18