decord/source/modules/frames/native/getDefaultOrientationLockState.tsx
2026-08-05 07:35:12 +00:00

23 lines
867 B
TypeScript

// Module ID: 15970
// Function ID: 15971
// Name: setOrientationLockState
// Dependencies: [10601, 709, 2]
// Exports: setOrientationLockState
// Module 15970 (setOrientationLockState)
const result = require("set").fileFinishedImporting("modules/frames/native/getDefaultOrientationLockState.tsx");
export const setOrientationLockState = function setOrientationLockState(id) {
let defaultOrientationLockState = arg1;
if (arg1 == null) {
let obj = require(10601) /* getIsTabletActivitySurface */;
defaultOrientationLockState = obj.getDefaultOrientationLockState(id);
}
if (null != defaultOrientationLockState) {
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);
}
};