UiAutomation.SetRunAsMonkey(Boolean) Method

Definition

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

[Android.Runtime.Register("setRunAsMonkey", "(Z)V", "")]
public void SetRunAsMonkey (bool enable);
[<Android.Runtime.Register("setRunAsMonkey", "(Z)V", "")>]
member this.SetRunAsMonkey : bool -> unit

Parameters

enable
Boolean

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

Attributes

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.

Java documentation for android.app.UiAutomation.setRunAsMonkey(boolean).

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