decord/source/8348_getKey.js

100 lines
2.8 KiB
JavaScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 8348
// Function ID: 65830
2026-07-20 16:05:17 +00:00
// Name: getKey
2026-07-23 10:11:24 +00:00
// Dependencies: [27]
2026-07-24 07:16:23 +00:00
// Module 8348 (getKey)
2026-07-23 10:11:24 +00:00
import { Platform } from "get ActivityIndicator";
import { DeviceEventEmitter } from "get ActivityIndicator";
2026-07-20 16:05:17 +00:00
function getKey(arg0) {
2026-07-23 10:11:24 +00:00
if (!arg0.hasOwnProperty(__listener_id)) {
2026-07-20 16:05:17 +00:00
const _Object = Object;
if (Object.isExtensible(arg0)) {
const _Object2 = Object;
const obj = {};
2026-07-23 10:11:24 +00:00
const sum = c3 + 1;
c3 = sum;
2026-07-20 16:05:17 +00:00
obj.value = `L${tmp4}`;
2026-07-23 10:11:24 +00:00
Object.defineProperty(arg0, __listener_id, obj);
2026-07-20 16:05:17 +00:00
} else {
return "F";
}
}
2026-07-23 10:11:24 +00:00
return arg0[__listener_id];
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let Orientation = require("get ActivityIndicator").NativeModules.Orientation;
2026-07-20 16:05:17 +00:00
let closure_2 = {};
2026-07-23 10:11:24 +00:00
let c3 = 0;
const __listener_id = "__listener_id";
2026-07-20 16:05:17 +00:00
export default {
getOrientation(arg0) {
const Orientation = arg0;
const orientation = Orientation.getOrientation((arg0, arg1) => {
2026-07-23 10:11:24 +00:00
callback(arg0, arg1);
2026-07-20 16:05:17 +00:00
});
},
getSpecificOrientation(arg0) {
const Orientation = arg0;
const specificOrientation = Orientation.getSpecificOrientation((arg0, arg1) => {
2026-07-23 10:11:24 +00:00
callback(arg0, arg1);
2026-07-20 16:05:17 +00:00
});
},
ignoreAutoRotate(arg0) {
Orientation.ignoreAutoRotate(arg0);
},
lockToPortrait() {
Orientation.lockToPortrait();
},
lockToLandscape() {
Orientation.lockToLandscape();
},
lockToLandscapeRight() {
Orientation.lockToLandscapeRight();
},
lockToLandscapeLeft() {
Orientation.lockToLandscapeLeft();
},
unlockAllOrientations() {
const result = Orientation.unlockAllOrientations();
},
addOrientationListener(handleOrientationChange) {
2026-07-23 10:11:24 +00:00
let closure_0 = handleOrientationChange;
2026-07-20 16:05:17 +00:00
closure_2[getKey(handleOrientationChange)] = DeviceEventEmitter.addListener("orientationDidChange", (orientation) => {
2026-07-23 10:11:24 +00:00
handleOrientationChange(orientation.orientation);
2026-07-20 16:05:17 +00:00
});
},
addOrientationDegreesChangeListener(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
closure_2[getKey(arg0)] = DeviceEventEmitter.addListener("orientationDegreesDidChange", (orientationDegrees) => {
2026-07-23 10:11:24 +00:00
callback(orientationDegrees.orientationDegrees);
2026-07-20 16:05:17 +00:00
});
},
removeOrientationListener(arg0) {
const tmp = getKey(arg0);
2026-07-23 10:11:24 +00:00
if (dependencyMap[tmp]) {
dependencyMap[tmp].remove();
dependencyMap[tmp] = null;
const obj = dependencyMap[tmp];
2026-07-20 16:05:17 +00:00
}
},
addSpecificOrientationListener(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
closure_2[getKey(arg0)] = DeviceEventEmitter.addListener("specificOrientationDidChange", (specificOrientation) => {
2026-07-23 10:11:24 +00:00
callback(specificOrientation.specificOrientation);
2026-07-20 16:05:17 +00:00
});
},
removeSpecificOrientationListener(arg0) {
const tmp = getKey(arg0);
2026-07-23 10:11:24 +00:00
if (dependencyMap[tmp]) {
dependencyMap[tmp].remove();
dependencyMap[tmp] = null;
const obj = dependencyMap[tmp];
2026-07-20 16:05:17 +00:00
}
},
getInitialOrientation() {
return Orientation.initialOrientation;
}
};