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

26 lines
1,022 B
TypeScript

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