27 lines
1,015 B
TypeScript
27 lines
1,015 B
TypeScript
// Module ID: 16201
|
|
// Function ID: 16202
|
|
// Name: setOrientationLockState
|
|
// Dependencies: [9603, 709, 2]
|
|
// Exports: setOrientationLockState
|
|
|
|
// Module 16201 (setOrientationLockState)
|
|
import set from "set" /* 2 */;
|
|
import dispatcherDefault from "dispatcher" /* 709 */;
|
|
import getIsTabletActivitySurface from "getIsTabletActivitySurface" /* 9603 */;
|
|
|
|
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;
|
|
}
|
|
};
|