decord/source/modules/activities/native/doesOrientationMatchLockState.tsx

33 lines
784 B
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 10634
// Function ID: 82715
2026-07-20 16:05:17 +00:00
// Name: doesOrientationMatchLockState
2026-07-28 08:39:19 +00:00
// Dependencies: [4190, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-28 08:39:19 +00:00
// Module 10634 (doesOrientationMatchLockState)
2026-07-23 10:11:24 +00:00
import { OrientationLockState } from "items3";
const result = require("set").fileFinishedImporting("modules/activities/native/doesOrientationMatchLockState.tsx");
2026-07-20 16:05:17 +00:00
export default function doesOrientationMatchLockState(arg0, arg1) {
let tmp = arg0;
let tmp2 = null == arg1;
if (!tmp2) {
tmp2 = arg1 === OrientationLockState.UNLOCKED;
}
if (!tmp2) {
let tmp4 = !tmp;
if (tmp4) {
tmp4 = arg1 === OrientationLockState.PORTRAIT;
}
tmp2 = tmp4;
}
if (!tmp2) {
if (tmp) {
tmp = arg1 === OrientationLockState.LANDSCAPE;
}
tmp2 = tmp;
}
return tmp2;
};