decord/beta/source/modules/activities/native/applyActivityOrientationLock.tsx
2026-10-01 14:13:23 +00:00

26 lines
1,022 B
TypeScript

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