Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5051.js (118.4 MB)
23 lines
921 B
TypeScript
23 lines
921 B
TypeScript
// Module ID: 17055
|
|
// Function ID: 17056
|
|
// Name: applyActivityOrientationLock
|
|
// Dependencies: [2005, 10962, 2]
|
|
// Exports: default
|
|
|
|
// Module 17055 (applyActivityOrientationLock)
|
|
import Constants from "Constants" /* 2005 */;
|
|
import applyOrientationLock from "applyOrientationLock" /* 10962 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const OrientationLockState = Constants.OrientationLockState;
|
|
let result = size.fileFinishedImporting("modules/activities/native/applyActivityOrientationLock.tsx");
|
|
|
|
export default function applyActivityOrientationLock(arg0) {
|
|
if (OrientationLockState.UNLOCKED === arg0) {
|
|
const result = applyOrientationLock.releaseOrientationLock({ unlockAfterRotatingToPreviousLock: true });
|
|
} else if (tmp.PORTRAIT === arg0) {
|
|
applyOrientationLock.applyOrientationLock("PORTRAIT");
|
|
} else if (tmp.LANDSCAPE === arg0) {
|
|
applyOrientationLock.applyOrientationLock("LANDSCAPE");
|
|
}
|
|
};
|