decord/beta/source/modules/activities/native/applyActivityOrientationLock.tsx
2026-10-12 16:32:48 +00:00

26 lines
1,022 B
TypeScript

// Module ID: 17753
// Function ID: 17754
// Name: applyActivityOrientationLock
// Dependencies: [2024, 12989, 2]
// Exports: default
// Module 17753 (applyActivityOrientationLock)
import Constants from "Constants" /* 2024 */;
import applyOrientationLock from "applyOrientationLock" /* 12989 */;
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");
}
};