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

28 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 15738
// Function ID: 121331
2026-07-20 16:05:17 +00:00
// Name: applyActivityOrientationLock
2026-07-24 07:16:23 +00:00
// Dependencies: [4155, 10629, 8347, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 15738 (applyActivityOrientationLock)
2026-07-23 10:11:24 +00:00
import { OrientationLockState } from "items3";
const result = require("handleOrientationChange").fileFinishedImporting("modules/activities/native/applyActivityOrientationLock.tsx");
2026-07-20 16:05:17 +00:00
export default function applyActivityOrientationLock(arg0) {
2026-07-24 07:16:23 +00:00
let obj = require(10629) /* getIsTabletActivitySurface */;
2026-07-20 16:05:17 +00:00
if (!obj.getIsTabletActivitySurface()) {
if (OrientationLockState.UNLOCKED === arg0) {
obj = { unlockAfterRotatingToPreviousLock: true };
2026-07-24 07:16:23 +00:00
require(8347) /* handleOrientationChange */.unlockOrientation(obj);
const obj4 = require(8347) /* handleOrientationChange */;
2026-07-20 16:05:17 +00:00
} else if (OrientationLockState.PORTRAIT === arg0) {
2026-07-24 07:16:23 +00:00
require(8347) /* handleOrientationChange */.lockOrientation("PORTRAIT", true);
const obj3 = require(8347) /* handleOrientationChange */;
2026-07-20 16:05:17 +00:00
} else if (OrientationLockState.LANDSCAPE === arg0) {
2026-07-24 07:16:23 +00:00
require(8347) /* handleOrientationChange */.lockOrientation("LANDSCAPE", true);
const obj2 = require(8347) /* handleOrientationChange */;
2026-07-20 16:05:17 +00:00
}
}
};