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

26 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 16280
// Function ID: 16281
// Name: frames/getDefaultOrientationLockState
// Dependencies: [8914, 573, 2]
// Exports: setOrientationLockState
// Module 16280 (frames/getDefaultOrientationLockState)
import DispatcherDefault from "Dispatcher" /* 573 */;
import getDefaultOrientationLockState from "getDefaultOrientationLockState" /* 8914 */;
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-01 14:13:23 +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-01 14:13:23 +00:00
const obj2 = DispatcherDefault;
obj2.dispatch(obj3);
}
};