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

24 lines
884 B
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 16194
// Function ID: 16195
2026-07-20 16:05:17 +00:00
// Name: setOrientationLockState
2026-08-12 06:57:52 +00:00
// Dependencies: [10778, 709, 2]
2026-07-20 16:05:17 +00:00
// Exports: setOrientationLockState
2026-08-12 06:57:52 +00:00
// Module 16194 (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
2026-08-06 08:05:19 +00:00
export const setOrientationLockState = function setOrientationLockState(arg0, application) {
let defaultOrientationLockState = arg2;
if (arg2 == null) {
2026-08-12 06:57:52 +00:00
let obj = require(10778) /* getIsTabletActivitySurface */;
2026-08-06 08:05:19 +00:00
defaultOrientationLockState = obj.getDefaultOrientationLockState(application);
2026-07-20 16:05:17 +00:00
}
if (null != defaultOrientationLockState) {
2026-08-06 08:05:19 +00:00
obj = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", frameId: null, lockState: null };
obj[1] = arg0;
2026-07-29 08:29:29 +00:00
obj[2] = defaultOrientationLockState;
importDefault(709).dispatch(obj);
const obj2 = importDefault(709);
2026-07-20 16:05:17 +00:00
}
};