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

28 lines
1,015 B
TypeScript
Raw Normal View History

// Module ID: 16539
// Function ID: 16540
2026-07-20 16:05:17 +00:00
// Name: setOrientationLockState
// Dependencies: [9563, 706, 2]
2026-07-20 16:05:17 +00:00
// Exports: setOrientationLockState
// Module 16539 (setOrientationLockState)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import dispatcherDefault from "dispatcher" /* 706 */;
import getIsTabletActivitySurface from "getIsTabletActivitySurface" /* 9563 */;
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/frames/native/getDefaultOrientationLockState.tsx");
2026-07-20 16:05:17 +00:00
2026-08-06 08:05:19 +00:00
export const setOrientationLockState = function setOrientationLockState(arg0, application) {
let defaultOrientationLockState = arg2;
if (arg2 == null) {
2026-08-24 06:08:38 +00:00
let obj = getIsTabletActivitySurface;
2026-08-06 08:05:19 +00:00
defaultOrientationLockState = obj.getDefaultOrientationLockState(application);
2026-07-20 16:05:17 +00:00
}
if (null != defaultOrientationLockState) {
2026-08-06 08:05:19 +00:00
obj = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", frameId: null, lockState: null };
obj[1] = arg0;
2026-07-29 08:29:29 +00:00
obj[2] = defaultOrientationLockState;
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch(obj);
const obj2 = dispatcherDefault;
2026-07-20 16:05:17 +00:00
}
};