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

26 lines
1 KiB
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 16282
// Function ID: 16283
// Name: frames/getDefaultOrientationLockState
2026-10-06 22:12:49 +00:00
// Dependencies: [8908, 585, 2]
// Exports: setOrientationLockState
2026-10-06 22:12:49 +00:00
// Module 16282 (frames/getDefaultOrientationLockState)
import DispatcherDefault from "Dispatcher" /* 585 */;
import getDefaultOrientationLockState from "getDefaultOrientationLockState" /* 8908 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/frames/native/getDefaultOrientationLockState.tsx");
export const setOrientationLockState = function setOrientationLockState(frameId, application, arg2) {
let defaultOrientationLockState = arg2;
if (arg2 == null) {
2026-10-06 22:12:49 +00:00
const obj = getDefaultOrientationLockState;
defaultOrientationLockState = obj.getDefaultOrientationLockState(application);
}
if (null != defaultOrientationLockState) {
const obj3 = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", frameId, lockState: defaultOrientationLockState };
2026-10-06 22:12:49 +00:00
const obj2 = DispatcherDefault;
obj2.dispatch(obj3);
}
};