decord/beta/source/modules/frames/native/getDefaultOrientationLockState.tsx
2026-10-12 16:32:48 +00:00

25 lines
1 KiB
TypeScript

// Module ID: 17739
// Function ID: 17740
// Name: frames/getDefaultOrientationLockState
// Dependencies: [10922, 584, 2]
// Exports: setOrientationLockState
// Module 17739 (frames/getDefaultOrientationLockState)
import DispatcherDefault from "Dispatcher" /* 584 */;
import getDefaultOrientationLockState from "getDefaultOrientationLockState" /* 10922 */;
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);
}
};