decord/source/modules/keyboard/KeyboardStateDebugging.tsx

108 lines
3 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 1891
// Function ID: 1892
2026-07-29 08:29:29 +00:00
// Dependencies: [3, 501, 2]
2026-07-23 10:11:24 +00:00
2026-08-15 05:55:55 +00:00
// Module 1891
2026-08-24 06:08:38 +00:00
import timestampDefault from "timestamp" /* 3 */;
import PlatformTypes from "PlatformTypes" /* 501 */;
require = arg1;
let closure_2 = new timestampDefault("KeyboardStateDebugging");
2026-07-29 08:29:29 +00:00
let obj = {
channelSafeAreaBottomLayoutHeightChanged(arg0) {
2026-08-24 06:08:38 +00:00
let obj = 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;
2026-08-24 06:08:38 +00:00
logger.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) {
2026-08-24 06:08:38 +00:00
let obj = 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;
2026-08-24 06:08:38 +00:00
logger.warn("ChannelSafeAreaBottom layout height mismatch.", obj);
2026-07-20 16:05:17 +00:00
}
},
keyboardControllerKeyboardWillShow(height) {
2026-08-24 06:08:38 +00:00
let obj = 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;
2026-08-24 06:08:38 +00:00
logger.info("KeyboardController keyboardWillShow.", obj);
2026-07-20 16:05:17 +00:00
}
},
keyboardControllerKeyboardDidShow(height) {
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
2026-08-24 06:08:38 +00:00
let obj = 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;
2026-08-24 06:08:38 +00:00
logger.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-08-24 06:08:38 +00:00
let obj = 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;
2026-08-24 06:08:38 +00:00
logger.info("KeyboardController worklet " + arg0 + ".", obj);
2026-07-20 16:05:17 +00:00
}
},
keyboardControllerKeyboardWillHide() {
if (!obj.isIOS()) {
2026-08-24 06:08:38 +00:00
logger.info("KeyboardController keyboardWillHide.");
2026-07-20 16:05:17 +00:00
}
},
keyboardControllerKeyboardDidHide() {
let flag = arg0;
if (arg0 === undefined) {
flag = false;
}
2026-08-24 06:08:38 +00:00
let obj = 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;
2026-08-24 06:08:38 +00:00
logger.info("KeyboardController keyboardDidHide.", obj);
2026-07-20 16:05:17 +00:00
}
},
reactNativeKeyboardDidShow(height, KeyboardUIStore) {
2026-08-24 06:08:38 +00:00
let obj = 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;
2026-08-24 06:08:38 +00:00
logger.info("ReactNativeKeyboard didShow.", obj);
2026-07-20 16:05:17 +00:00
}
},
reactNativeKeyboardDidHide(KeyboardUIStore) {
2026-08-24 06:08:38 +00:00
let obj = 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;
2026-08-24 06:08:38 +00:00
logger.info("ReactNativeKeyboard didHide.", obj);
2026-07-20 16:05:17 +00:00
}
},
markPotentialBadState() {
if (!obj.isIOS()) {
2026-08-24 06:08:38 +00:00
logger.warn("Marking potential bad state from user, check logs above.");
2026-07-20 16:05:17 +00:00
}
}
};
2026-08-24 06:08:38 +00:00
const tmp2 = new timestampDefault("KeyboardStateDebugging");
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("modules/keyboard/KeyboardStateDebugging.tsx");
export default obj;