属性名 | 类型 | 必填 | 说明 |
---|---|---|---|
scriptName | string | 必填 | 移动端脚本名 |
params... | object | 选填 | 任意个参数,参数直接透传给脚本。 |
属性名 | 类型 | 必填 | 说明 |
---|---|---|---|
refresh | boolean | 选填 | 停止后是否刷新界面,默认为true |
属性名 | 类型 | 必填 | 说明 |
---|---|---|---|
key | string | 选填 | 返回键为key的值,默认key为空,表示返回所有数据 |
属性名 | 类型 | 必填 | 说明 |
---|---|---|---|
name | string | 必填 | 数据名 |
属性名 | 类型 | 必填 | 说明 |
---|---|---|---|
name | string | 必填 | 数据名 |
属性名 | 类型 | 必填 | 说明 |
---|---|---|---|
name | string | 必填 | 数据名 |
data | string | 必填 | 数据 |
属性名 | 类型 | 必填 | 说明 |
---|---|---|---|
time | integer | 必填 | 延迟时间,单位毫秒 |
属性名 | 类型 | 必填 | 说明 |
---|---|---|---|
消息id | string | 必填 | 消息的唯一标识,系统内置消息id「run_msg」,用于显示程序内部运行的信息。 |
params... | object | 选填 | 任意个参数 |
属性名 | 类型 | 必填 | 说明 |
---|---|---|---|
packageName | string | 选填 | 默认为空,表示获取当前客户端的程序名。 |
属性名 | 类型 | 必填 | 说明 |
---|
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
probability | integer | 必填 | 0-100的整数,如果为30,表示概率为30%,如果落在30%内返回true,否则返回false |
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
message | object | 必填 | 显示的内容 |
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
data | string/float | 必填 | 数据 |
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
data | string/integer | 必填 | 数据 |
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
data | string | 必填 | 数据 |
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
data | string | 必填 | 数据 |
参数名 | 类型 | 必填 | 说明 |
---|
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
text | string | 必填 | 文本 |
duration | integer | 选填 | toast持续时间,默认值1000,单位毫秒 |
x | integer | 选填 | x坐标值,默认值-1,单位像素 |
y | integer | 选填 | y坐标值,默认值-1,单位像素 |
参数名 | 类型 | 默认值 | 说明 |
---|---|---|---|
type | string | 必填 | 支持md5,sha-256,hmac-sha-256 |
str | string | 必填 | 字符串 |
secret | string | 选填 | 为hmac-sha-256时有效 |
var intent = new Intent(); intent.setAction('android.intent.action.MAIN').addCategory('android.intent.category.HOME'); startActivity(intent);
参数名 | 类型 | 默认值 | 说明 |
---|---|---|---|
Intent | intent | 必填 | 用于描述启动哪个页面 |
函数名 | 参数 | 说明 |
---|---|---|
setAction | string | 用于描述意图抽象动作 |
addCategory | string | 用于为action增加额外的类别信息 |
setData | string | 用于向action提供操作数据 |
setType | string | 设置数据类型 |
setClassName | string,string | 两个参数分别表示className和packageName |
shell('cp /sdcard/aznfz/temp.txt /sdcard/aznfz/file.txt');
参数名 | 类型 | 默认值 | 说明 |
---|---|---|---|
cmd | string | 必填 | shell命令 |
var ret = enableWifi(false);
参数名 | 类型 | 默认值 | 说明 |
---|---|---|---|
enable | boolean | 必填 | true表示开启wifi,false表示关闭wifi |
var ret = getIp();
参数名 | 类型 | 默认值 | 说明 |
---|
killBackgroundApp('com.xx.tt');
参数名 | 类型 | 默认值 | 说明 |
---|---|---|---|
packageName | string | 必填 | app对应的包名 |