6.2.0 - 重新设计及编写项目文档; 新增多语言适配; 丰富控件选择器功能; 优化夜间模式适配等
This commit is contained in:
32
app/src/main/assets/modules/__sensors__.js
Normal file
32
app/src/main/assets/modules/__sensors__.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @param {org.autojs.autojs.runtime.ScriptRuntime} scriptRuntime
|
||||
* @param {org.mozilla.javascript.Scriptable | global} scope
|
||||
* @return {Internal.Sensors}
|
||||
*/
|
||||
module.exports = function (scriptRuntime, scope) {
|
||||
let _ = {
|
||||
Sensors: ( /* @IIFE */ () => {
|
||||
/**
|
||||
* @extends Internal.Sensors
|
||||
*/
|
||||
const Sensors = function () {
|
||||
// Empty interface body.
|
||||
};
|
||||
|
||||
Sensors.prototype = {
|
||||
constructor: Sensors,
|
||||
};
|
||||
|
||||
Object.setPrototypeOf(Sensors.prototype, scriptRuntime.sensors);
|
||||
|
||||
return Sensors;
|
||||
})(),
|
||||
};
|
||||
|
||||
/**
|
||||
* @type {Internal.Sensors}
|
||||
*/
|
||||
const sensors = new _.Sensors();
|
||||
|
||||
return sensors;
|
||||
};
|
||||
Reference in New Issue
Block a user