本文整理匯總了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();
}