离子检测 iOS 钥匙串 open/close 事件?
Ionic detect iOS keychain open/close event?
有没有一种方法可以使用离子框架来检测原生 ios 模态(例如钥匙串模态)何时打开或关闭,然后 运行 响应该事件的函数?
这可以通过使用 cordova-plugin-ionic-keyboard
插件和一些事件侦听器来实现。
window.addEventListener('keyboardWillShow', (event: any) => {
// Keyboard is showing
});
window.addEventListener('keyboardWillHide', (event: any) => {
// Keyboard is hiding
});
有没有一种方法可以使用离子框架来检测原生 ios 模态(例如钥匙串模态)何时打开或关闭,然后 运行 响应该事件的函数?
这可以通过使用 cordova-plugin-ionic-keyboard
插件和一些事件侦听器来实现。
window.addEventListener('keyboardWillShow', (event: any) => {
// Keyboard is showing
});
window.addEventListener('keyboardWillHide', (event: any) => {
// Keyboard is hiding
});