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

28 lines
1,017 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15936
// Function ID: 15937
2026-07-20 16:05:17 +00:00
// Name: setOrientationLockState
2026-08-24 06:08:38 +00:00
// Dependencies: [12519, 709, 2]
2026-07-20 16:05:17 +00:00
// Exports: setOrientationLockState
2026-08-24 06:08:38 +00:00
// Module 15936 (setOrientationLockState)
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 709 */;
import getIsTabletActivitySurface from "getIsTabletActivitySurface" /* 12519 */;
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
}
};