decord/beta/source/modules/frames/native/getDefaultOrientationLockState.tsx
2026-10-02 13:37:24 +00:00

25 lines
1 KiB
TypeScript

// Module ID: 16282
// Function ID: 16283
// Name: frames/getDefaultOrientationLockState
// Dependencies: [8908, 585, 2]
// Exports: setOrientationLockState
// 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) {
const obj = getDefaultOrientationLockState;
defaultOrientationLockState = obj.getDefaultOrientationLockState(application);
}
if (null != defaultOrientationLockState) {
const obj3 = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", frameId, lockState: defaultOrientationLockState };
const obj2 = DispatcherDefault;
obj2.dispatch(obj3);
}
};