2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 14210
|
|
|
|
|
// Function ID: 14211
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: BackPressManager
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [17, 4732, 1611, 1483, 1983, 1364, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 14210 (BackPressManager)
|
2026-09-10 05:38:07 +00:00
|
|
|
import _mod17 from "module_17" /* 17 */;
|
2026-09-26 08:31:33 +00:00
|
|
|
import KeyboardTypes from "KeyboardTypes" /* 1611 */;
|
2026-10-01 06:55:13 +00:00
|
|
|
import useKeyboardType from "useKeyboardType" /* 4732 */;
|
2026-09-26 08:31:33 +00:00
|
|
|
import LifecycleManager from "LifecycleManager" /* 1983 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
function handleBackPress() {
|
2026-08-24 06:08:38 +00:00
|
|
|
const keyboardType = useKeyboardType.getKeyboardType();
|
|
|
|
|
let flag = keyboardType !== KeyboardTypes.KeyboardTypes.SYSTEM;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (flag) {
|
2026-09-26 08:31:33 +00:00
|
|
|
const obj2 = { type: tmp(1611).KeyboardTypes.SYSTEM };
|
|
|
|
|
tmp(1483).setKeyboardType(obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
flag = true;
|
2026-09-26 08:31:33 +00:00
|
|
|
const tmpResult = tmp(1483);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return flag;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
_mod17.BackHandler;
|
2026-07-29 08:29:29 +00:00
|
|
|
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();
|
2026-09-10 05:38:07 +00:00
|
|
|
let result = size.fileFinishedImporting("modules/routing/native/BackPressManager.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default backPressManager;
|