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

26 lines
723 B
TypeScript
Raw Normal View History

// Module ID: 9477
// Function ID: 9478
2026-08-08 06:10:11 +00:00
// Name: isOrientationLockSupported
// Dependencies: [4539, 1608, 2]
2026-08-08 06:10:11 +00:00
// Exports: default
// Module 9477 (isOrientationLockSupported)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import DCDDeviceManager from "DCDDeviceManager" /* 4539 */;
2026-08-24 06:08:38 +00:00
let result = set.fileFinishedImporting("modules/device/native/isOrientationLockSupported.tsx");
2026-08-08 06:10:11 +00:00
export default function isOrientationLockSupported() {
2026-08-24 06:08:38 +00:00
const isIpadOSResult = DCDDeviceManager.isIpadOS();
2026-08-08 06:10:11 +00:00
let result = !isIpadOSResult;
if (!isIpadOSResult) {
let tmpResult = tmp(1608);
2026-08-08 06:10:11 +00:00
result = !tmpResult.isMetaQuest();
}
if (result) {
tmpResult = tmp(4539);
2026-08-08 06:10:11 +00:00
result = tmpResult.isOrientationLockSupported();
}
return result;
};