decord/beta/source/modules/activities/native/doesOrientationMatchLockState.tsx
2026-10-07 22:43:51 +00:00

28 lines
851 B
TypeScript

// Module ID: 9135
// Function ID: 9136
// Name: doesOrientationMatchLockState
// Dependencies: [2011, 2]
// Exports: default
// Module 9135 (doesOrientationMatchLockState)
import Constants from "Constants" /* 2011 */;
import size from "module_2" /* 2 */;
const OrientationLockState = Constants.OrientationLockState;
const result = size.fileFinishedImporting("modules/activities/native/doesOrientationMatchLockState.tsx");
export default function doesOrientationMatchLockState(arg0, arg1) {
let tmp = null == arg1 || arg1 === OrientationLockState.UNLOCKED;
let tmp3 = arg0;
if (!tmp) {
tmp = !tmp3 && arg1 === OrientationLockState.PORTRAIT;
const tmp4 = !tmp3 && arg1 === OrientationLockState.PORTRAIT;
}
if (!tmp) {
if (tmp3) {
tmp3 = arg1 === OrientationLockState.LANDSCAPE;
}
tmp = tmp3;
}
return tmp;
};