Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
46 lines
1.6 KiB
TypeScript
46 lines
1.6 KiB
TypeScript
// Module ID: 14210
|
|
// Function ID: 14211
|
|
// Name: BackPressManager
|
|
// Dependencies: [17, 4732, 1611, 1483, 1983, 1364, 2]
|
|
|
|
// Module 14210 (BackPressManager)
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import KeyboardTypes from "KeyboardTypes" /* 1611 */;
|
|
import useKeyboardType from "useKeyboardType" /* 4732 */;
|
|
import LifecycleManager from "LifecycleManager" /* 1983 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
function handleBackPress() {
|
|
const keyboardType = useKeyboardType.getKeyboardType();
|
|
let flag = keyboardType !== KeyboardTypes.KeyboardTypes.SYSTEM;
|
|
if (flag) {
|
|
const obj2 = { type: tmp(1611).KeyboardTypes.SYSTEM };
|
|
tmp(1483).setKeyboardType(obj2);
|
|
flag = true;
|
|
const tmpResult = tmp(1483);
|
|
}
|
|
return flag;
|
|
}
|
|
_mod17.BackHandler;
|
|
class BackPressManager extends tmp2 {
|
|
}
|
|
const prototype = BackPressManager.prototype;
|
|
prototype["_initialize"] = function _initialize() {
|
|
if (obj.isAndroid()) {
|
|
const self = this;
|
|
const result = this._initializeGlobalBackPressListener();
|
|
}
|
|
};
|
|
prototype["_initializeGlobalBackPressListener"] = function _initializeGlobalBackPressListener() {
|
|
this._backPressEventSubscription = BackHandler.addEventListener("hardwareBackPress", handleBackPress);
|
|
};
|
|
prototype["_terminate"] = function _terminate() {
|
|
const _backPressEventSubscription = this._backPressEventSubscription;
|
|
if (_backPressEventSubscription != null) {
|
|
_backPressEventSubscription.remove();
|
|
}
|
|
};
|
|
const backPressManager = new BackPressManager();
|
|
let result = size.fileFinishedImporting("modules/routing/native/BackPressManager.tsx");
|
|
|
|
export default backPressManager;
|