decord/source/modules/frames/native/getDefaultOrientationLockState.tsx

24 lines
867 B
TypeScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 15865
// Function ID: 15866
2026-07-20 16:05:17 +00:00
// Name: setOrientationLockState
2026-07-30 10:14:41 +00:00
// Dependencies: [10652, 709, 2]
2026-07-20 16:05:17 +00:00
// Exports: setOrientationLockState
2026-07-30 10:14:41 +00:00
// Module 15865 (setOrientationLockState)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/frames/native/getDefaultOrientationLockState.tsx");
2026-07-20 16:05:17 +00:00
export const setOrientationLockState = function setOrientationLockState(id) {
let defaultOrientationLockState = arg1;
2026-07-29 08:29:29 +00:00
if (arg1 == null) {
2026-07-30 10:14:41 +00:00
let obj = require(10652) /* getIsTabletActivitySurface */;
2026-07-20 16:05:17 +00:00
defaultOrientationLockState = obj.getDefaultOrientationLockState(id);
}
if (null != defaultOrientationLockState) {
2026-07-29 08:29:29 +00:00
obj = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", applicationId: null, lockState: null };
obj[1] = id.id;
obj[2] = defaultOrientationLockState;
importDefault(709).dispatch(obj);
const obj2 = importDefault(709);
2026-07-20 16:05:17 +00:00
}
};