Options
All
  • Public
  • Public/Protected
  • All
Menu

Module globals

Global functions and variables. Mainly the global variable $autojs.

Index

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

Java.setThreadMode

Variables

Const $autojs

$autojs: AutoJs

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

Const $java

$java: Java

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