decord/alpha/source/modules/activities/native/applyActivityOrientationLock.tsx
2026-10-13 12:43:34 +00:00

26 lines
1,022 B
TypeScript

// Module ID: 17757
// Function ID: 17758
// Name: applyActivityOrientationLock
// Dependencies: [2024, 13481, 2]
// Exports: default
// Module 17757 (applyActivityOrientationLock)
import Constants from "Constants" /* 2024 */;
import applyOrientationLock from "applyOrientationLock" /* 13481 */;
import size from "module_2" /* 2 */;
const OrientationLockState = Constants.OrientationLockState;
let result = size.fileFinishedImporting("modules/activities/native/applyActivityOrientationLock.tsx");
export default function applyActivityOrientationLock(arg0) {
if (OrientationLockState.UNLOCKED === arg0) {
const obj3 = applyOrientationLock;
const result = obj3.releaseOrientationLock({ unlockAfterRotatingToPreviousLock: true });
} else if (OrientationLockState.PORTRAIT === arg0) {
const obj2 = applyOrientationLock;
obj2.applyOrientationLock("PORTRAIT");
} else if (OrientationLockState.LANDSCAPE === arg0) {
const obj = applyOrientationLock;
obj.applyOrientationLock("LANDSCAPE");
}
};