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

24 lines
980 B
TypeScript
Raw Normal View History

// Module ID: 16651
// Function ID: 16652
// Name: frames/getDefaultOrientationLockState
// Dependencies: [9666, 573, 2]
2026-07-20 16:05:17 +00:00
// Exports: setOrientationLockState
// Module 16651 (frames/getDefaultOrientationLockState)
import DispatcherDefault from "Dispatcher" /* 573 */;
import getDefaultOrientationLockState from "getDefaultOrientationLockState" /* 9666 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/frames/native/getDefaultOrientationLockState.tsx");
2026-07-20 16:05:17 +00:00
export const setOrientationLockState = function setOrientationLockState(frameId, application, arg2) {
2026-08-06 08:05:19 +00:00
let defaultOrientationLockState = arg2;
if (arg2 == null) {
defaultOrientationLockState = getDefaultOrientationLockState.getDefaultOrientationLockState(application);
2026-07-20 16:05:17 +00:00
}
if (null != defaultOrientationLockState) {
const obj3 = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", frameId, lockState: defaultOrientationLockState };
DispatcherDefault.dispatch(obj3);
2026-07-20 16:05:17 +00:00
}
};