decord/source/module_247.js
2026-08-24 06:08:38 +00:00

66 lines
1.7 KiB
JavaScript

// Module ID: 247
// Function ID: 248
// Dependencies: [92, 134, 248, 249]
// Module 247
import _isNativeReflectConstructDefault from "_isNativeReflectConstruct" /* 92 */;
import SymbolResult1 from "SymbolResult1" /* 134 */;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" /* 248 */;
import DeviceEventManagerDefault from "DeviceEventManager" /* 249 */;
require = arg1;
let closure_3 = [];
_isNativeReflectConstructDefault.addListener("hardwareBackPress", (timeStamp) => {
timeStamp = undefined;
if (timeStamp != null) {
timeStamp = timeStamp.timeStamp;
}
obj = {};
if (null != timeStamp) {
const result = SymbolResult1.setEventInitTimeStamp(obj, timeStamp);
const obj2 = SymbolResult1;
}
const hardwareBackPressEvent = new _isNativeReflectConstruct.HardwareBackPressEvent(obj);
let diff = closure_3.length - 1;
if (0 <= diff) {
while (true) {
let tmp7 = closure_3[diff];
let tmp8 = diff;
let tmp7Result;
if (tmp7 != null) {
tmp7Result = tmp7(hardwareBackPressEvent);
}
if (tmp7Result) {
break;
} else {
diff = diff - 1;
}
}
}
obj.exitApp();
});
let obj = {
exitApp() {
if (DeviceEventManagerDefault) {
const result = DeviceEventManagerDefault.invokeDefaultBackPressHandler();
const tmpResult = DeviceEventManagerDefault;
}
},
addEventListener(arg0, arg1) {
closure_0 = arg1;
let arr = closure_3;
if (-1 === closure_3.indexOf(arg1)) {
arr = arr.push(arg1);
}
return {
remove() {
const index = closure_1_3.indexOf(closure_0);
if (-1 !== index) {
closure_1_3.splice(index, 1);
}
}
};
}
};
export default obj;