decord/stable/source/modules/activities/native/applyActivityOrientationLock.tsx

24 lines
921 B
TypeScript
Raw Normal View History

// Module ID: 17477
// Function ID: 17478
// Name: applyActivityOrientationLock
// Dependencies: [2004, 12065, 2]
// Exports: default
// Module 17477 (applyActivityOrientationLock)
import Constants from "Constants" /* 2004 */;
import applyOrientationLock from "applyOrientationLock" /* 12065 */;
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");
}
};