decord/source/modules/device/native/isOrientationLockSupported.tsx

23 lines
662 B
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 8676
// Function ID: 8677
2026-08-08 06:10:11 +00:00
// Name: isOrientationLockSupported
2026-08-15 05:55:55 +00:00
// Dependencies: [4354, 1625, 2]
2026-08-08 06:10:11 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 8676 (isOrientationLockSupported)
2026-08-08 06:10:11 +00:00
let result = require("set").fileFinishedImporting("modules/device/native/isOrientationLockSupported.tsx");
export default function isOrientationLockSupported() {
2026-08-15 05:55:55 +00:00
const isIpadOSResult = require(4354) /* DCDDeviceManager */.isIpadOS();
2026-08-08 06:10:11 +00:00
let result = !isIpadOSResult;
if (!isIpadOSResult) {
2026-08-15 05:55:55 +00:00
let tmpResult = tmp(1625);
2026-08-08 06:10:11 +00:00
result = !tmpResult.isMetaQuest();
}
if (result) {
2026-08-15 05:55:55 +00:00
tmpResult = tmp(4354);
2026-08-08 06:10:11 +00:00
result = tmpResult.isOrientationLockSupported();
}
return result;
};