本文整理汇总了TypeScript中@ionic-native/keyboard.Keyboard类的典型用法代码示例。如果您正苦于以下问题:TypeScript Keyboard类的具体用法?TypeScript Keyboard怎么用?TypeScript Keyboard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Keyboard类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: onCordovaReady
private onCordovaReady() {
if (window['cordova']) {
this.keyboard.hideKeyboardAccessoryBar(true);
this.statusBar.styleDefault();
this.splashScreen.hide();
}
}
示例2: ngOnInit
public ngOnInit() {
if (this.platform.is('cordova') && this.platform.is('ios')) {
this.onShowSubscription = this.keyboard.onKeyboardShow().subscribe(e => this.onShow(e));
this.onHideSubscription = this.keyboard.onKeyboardHide().subscribe(() => this.onHide());
}
}
示例3: sendMessage
sendMessage(message: string) {
LogService.logMessage("BoardItemPage sendMessage " + this.chat.$key + " ", message);
this.data.saveMessage("board_messages", this.chat.$key, message, null, () => {
LogService.logMessage("BoardItemPage sendMessage success saved");
this.message = '';
}, false);
this.keyboard.close();
}
示例4:
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
statusBar.styleDefault();
splashScreen.hide();
if(platform.is('ios')) {
this.keyboard.disableScroll(true);
}
/*const authObserver = */afAuth.authState.subscribe( user => {
if(user) {
console.log('app',user);
this.auth.setUserProfile(user);
this.rootPage = TabsPage;
//authObserver.unsubscribe();
}else {
this.rootPage = LoginPage;
//authObserver.unsubscribe();
}
});
});
示例5: clickOk
clickOk(cb: Channel) {
this.homeData.setChannel(cb);
setTimeout(this.updateData(),200);
this.keyboard.close();
}
示例6: searchbarFocus
private searchbarFocus(): void {
this.keyboard.show();
this.searchbar.setFocus();
}