globals


CloudControl Pro 9 Docs / globals

globals

Table of contents

Namespaces

Interfaces

Type Aliases

Variables

Type Aliases

JavaClass

Ƭ JavaClass: any


JavaObject

Ƭ JavaObject: any


ThreadMode

Ƭ ThreadMode: "ui" | "current" | "compute" | "io"

Thread mode, used to set the running thread of Java function or object.

  • ui: UI thread
  • io: IO thread, usually used for file reading and writing, network requests etc.
  • compute: compute thread, usually used for compute-intensive tasks
  • current: current thread

See

setThreadMode

Variables

$autojs

Const $autojs: AutoJs

$autojs, a global variable to provide special API for autojs environment. For example, check if is release mode.


$java

Const $java: Java

raw APIs for Java interop. Recommended to use java and rhino modules instead.