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

27 lines
1,022 B
TypeScript
Raw Normal View History

2026-10-03 08:58:59 +00:00
// Module ID: 17138
// Function ID: 17139
2026-07-20 16:05:17 +00:00
// Name: applyActivityOrientationLock
2026-10-03 08:58:59 +00:00
// Dependencies: [2011, 10964, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-03 08:58:59 +00:00
// Module 17138 (applyActivityOrientationLock)
import Constants from "Constants" /* 2011 */;
import applyOrientationLock from "applyOrientationLock" /* 10964 */;
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
}
};