decord/alpha/source/modules/activities/native/applyActivityOrientationLock.tsx

27 lines
1,022 B
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 17624
// Function ID: 17625
2026-07-20 16:05:17 +00:00
// Name: applyActivityOrientationLock
2026-10-09 10:00:15 +00:00
// Dependencies: [2024, 12939, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 17624 (applyActivityOrientationLock)
import Constants from "Constants" /* 2024 */;
import applyOrientationLock from "applyOrientationLock" /* 12939 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const OrientationLockState = Constants.OrientationLockState;
let result = size.fileFinishedImporting("modules/activities/native/applyActivityOrientationLock.tsx");
2026-07-20 16:05:17 +00:00
export default function applyActivityOrientationLock(arg0) {
2026-08-12 06:57:52 +00:00
if (OrientationLockState.UNLOCKED === arg0) {
2026-10-03 08:58:59 +00:00
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");
2026-07-20 16:05:17 +00:00
}
};