Interface: AutoJs
CloudControl Pro 9 Docs / globals / AutoJs
Interface: AutoJs
globals.AutoJs
Table of contents
Properties
Methods
Properties
androidContext
• androidContext: Context
application
• application: Application
isReleaseMode
• isReleaseMode: boolean
Whether is run in built app environment.
java
• java: Java
raw APIs for Java interop. Recommended to use java and rhino modules instead.
properties
• properties: ReadonlyMap
<string
, any
>
Methods
cancelKeepRunning
▸ cancelKeepRunning(id
): any
Cancel the keep running.
See
Parameters
Name | Type | Description |
---|---|---|
id |
number |
The id returned by keepRunning() |
Returns
any
keepRunning
▸ keepRunning(): number
Keep the engine running, preventing Node.js event loop to exit. Return an id to cancel it. If there are multiple keepRunning calls, only when all of them are cancelled, the keep running will be cancelled.
Returns
number
id, to cancel the keep running.
requireAutoJsVersion
▸ requireAutoJsVersion(version
): any
Require the specified CloudControl Pro version to run, if the current version is lower than the specified version, throw an exception.
Parameters
Name | Type | Description |
---|---|---|
version |
string |
CloudControl Pro version, like "Pro 9.1.0-2" |
Returns
any