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

27 lines
1,022 B
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 16802
// Function ID: 16803
// Name: applyActivityOrientationLock
2026-10-02 13:37:24 +00:00
// Dependencies: [2011, 10722, 2]
// Exports: default
2026-10-02 13:37:24 +00:00
// Module 16802 (applyActivityOrientationLock)
import Constants from "Constants" /* 2011 */;
import applyOrientationLock from "applyOrientationLock" /* 10722 */;
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) {
2026-10-01 14:13:23 +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");
}
};