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

26 lines
1 KiB
TypeScript
Raw Normal View History

2026-10-05 08:00:40 +00:00
// Module ID: 17148
// Function ID: 17149
// Name: frames/getDefaultOrientationLockState
2026-10-03 08:58:59 +00:00
// Dependencies: [9133, 584, 2]
2026-07-20 16:05:17 +00:00
// Exports: setOrientationLockState
2026-10-05 08:00:40 +00:00
// Module 17148 (frames/getDefaultOrientationLockState)
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
import getDefaultOrientationLockState from "getDefaultOrientationLockState" /* 9133 */;
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) {
2026-10-03 08:58:59 +00:00
const obj = getDefaultOrientationLockState;
defaultOrientationLockState = obj.getDefaultOrientationLockState(application);
2026-07-20 16:05:17 +00:00
}
if (null != defaultOrientationLockState) {
const obj3 = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", frameId, lockState: defaultOrientationLockState };
2026-10-03 08:58:59 +00:00
const obj2 = DispatcherDefault;
obj2.dispatch(obj3);
2026-07-20 16:05:17 +00:00
}
};