decord/source/modules/keyboard/KeyboardStateDebugging.tsx

104 lines
3 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1843
// Function ID: 1844
// Dependencies: [3, 501, 2]
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
// Module 1843
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let obj = {
channelSafeAreaBottomLayoutHeightChanged(arg0) {
let obj = require(501) /* PlatformTypes */;
2026-07-20 16:05:17 +00:00
if (!obj.isIOS()) {
2026-07-29 08:29:29 +00:00
obj = { layoutHeight: null };
obj[0] = arg0;
tmp2.info("ChannelSafeAreaBottom layout height changed.", obj);
2026-07-20 16:05:17 +00:00
}
},
2026-07-29 08:29:29 +00:00
channelSafeAreaBottomLayoutHeightMismatch(arg0, arg1) {
let obj = require(501) /* PlatformTypes */;
2026-07-20 16:05:17 +00:00
if (!obj.isIOS()) {
2026-07-29 08:29:29 +00:00
obj = { layoutHeight: null, reportedKeyboardHeight: null };
obj[0] = arg0;
obj[1] = arg1;
arg1.warn("ChannelSafeAreaBottom layout height mismatch.", obj);
2026-07-20 16:05:17 +00:00
}
},
keyboardControllerKeyboardWillShow(height) {
2026-07-29 08:29:29 +00:00
let obj = require(501) /* PlatformTypes */;
2026-07-20 16:05:17 +00:00
if (!obj.isIOS()) {
2026-07-29 08:29:29 +00:00
obj = { height: null };
obj[0] = height;
tmp2.info("KeyboardController keyboardWillShow.", obj);
2026-07-20 16:05:17 +00:00
}
},
keyboardControllerKeyboardDidShow(height) {
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
2026-07-29 08:29:29 +00:00
let obj = require(501) /* PlatformTypes */;
2026-07-20 16:05:17 +00:00
if (!obj.isIOS()) {
2026-07-29 08:29:29 +00:00
obj = { height: null, rootProvider: null };
obj[0] = height;
obj[1] = flag;
tmp2.info("KeyboardController keyboardDidShow.", obj);
2026-07-20 16:05:17 +00:00
}
},
2026-07-29 08:29:29 +00:00
keyboardControllerWorkletEvent(arg0, arg1) {
2026-07-20 16:05:17 +00:00
let flag = arg2;
if (arg2 === undefined) {
flag = false;
}
2026-07-29 08:29:29 +00:00
let obj = require(501) /* PlatformTypes */;
2026-07-20 16:05:17 +00:00
if (!obj.isIOS()) {
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
obj = { height: null, rootProvider: null };
obj[0] = arg1;
obj[1] = flag;
arg1.info("KeyboardController worklet " + arg0 + ".", obj);
2026-07-20 16:05:17 +00:00
}
},
keyboardControllerKeyboardWillHide() {
if (!obj.isIOS()) {
2026-07-29 08:29:29 +00:00
tmp2.info("KeyboardController keyboardWillHide.");
2026-07-20 16:05:17 +00:00
}
},
keyboardControllerKeyboardDidHide() {
let flag = arg0;
if (arg0 === undefined) {
flag = false;
}
2026-07-29 08:29:29 +00:00
let obj = require(501) /* PlatformTypes */;
2026-07-20 16:05:17 +00:00
if (!obj.isIOS()) {
2026-07-29 08:29:29 +00:00
obj = { rootProvider: null };
obj[0] = flag;
tmp2.info("KeyboardController keyboardDidHide.", obj);
2026-07-20 16:05:17 +00:00
}
},
reactNativeKeyboardDidShow(height, KeyboardUIStore) {
2026-07-29 08:29:29 +00:00
let obj = require(501) /* PlatformTypes */;
2026-07-20 16:05:17 +00:00
if (!obj.isIOS()) {
2026-07-29 08:29:29 +00:00
obj = { height: null, location: null };
obj[0] = height;
obj[1] = KeyboardUIStore;
KeyboardUIStore.info("ReactNativeKeyboard didShow.", obj);
2026-07-20 16:05:17 +00:00
}
},
reactNativeKeyboardDidHide(KeyboardUIStore) {
2026-07-29 08:29:29 +00:00
let obj = require(501) /* PlatformTypes */;
2026-07-20 16:05:17 +00:00
if (!obj.isIOS()) {
2026-07-29 08:29:29 +00:00
obj = { location: null };
obj[0] = KeyboardUIStore;
tmp2.info("ReactNativeKeyboard didHide.", obj);
2026-07-20 16:05:17 +00:00
}
},
markPotentialBadState() {
if (!obj.isIOS()) {
2026-07-29 08:29:29 +00:00
tmp2.warn("Marking potential bad state from user, check logs above.");
2026-07-20 16:05:17 +00:00
}
}
};
2026-07-29 08:29:29 +00:00
const tmp2 = new require("timestamp")("KeyboardStateDebugging");
const result = require("set").fileFinishedImporting("modules/keyboard/KeyboardStateDebugging.tsx");
export default obj;