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 (bool enable)

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