decord/source/modules/frames/native/getDefaultOrientationLockState.tsx
2026-08-06 08:05:19 +00:00

23 lines
884 B
TypeScript

// Module ID: 16010
// Function ID: 16011
// Name: setOrientationLockState
// Dependencies: [10656, 709, 2]
// Exports: setOrientationLockState
// Module 16010 (setOrientationLockState)
const result = require("set").fileFinishedImporting("modules/frames/native/getDefaultOrientationLockState.tsx");
export const setOrientationLockState = function setOrientationLockState(arg0, application) {
let defaultOrientationLockState = arg2;
if (arg2 == null) {
let obj = require(10656) /* getIsTabletActivitySurface */;
defaultOrientationLockState = obj.getDefaultOrientationLockState(application);
}
if (null != defaultOrientationLockState) {
obj = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", frameId: null, lockState: null };
obj[1] = arg0;
obj[2] = defaultOrientationLockState;
importDefault(709).dispatch(obj);
const obj2 = importDefault(709);
}
};