27 lines
1,017 B
TypeScript
27 lines
1,017 B
TypeScript
// Module ID: 15936
|
|
// Function ID: 15937
|
|
// Name: setOrientationLockState
|
|
// Dependencies: [12519, 709, 2]
|
|
// Exports: setOrientationLockState
|
|
|
|
// 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");
|
|
|
|
export const setOrientationLockState = function setOrientationLockState(arg0, application) {
|
|
let defaultOrientationLockState = arg2;
|
|
if (arg2 == null) {
|
|
let obj = getIsTabletActivitySurface;
|
|
defaultOrientationLockState = obj.getDefaultOrientationLockState(application);
|
|
}
|
|
if (null != defaultOrientationLockState) {
|
|
obj = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", frameId: null, lockState: null };
|
|
obj[1] = arg0;
|
|
obj[2] = defaultOrientationLockState;
|
|
dispatcherDefault.dispatch(obj);
|
|
const obj2 = dispatcherDefault;
|
|
}
|
|
};
|