本文整理汇总了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();
}
}
开发者ID:BBoyBreaker,项目名称:iko-demo,代码行数:7,代码来源:app.component.ts
示例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());
}
}
开发者ID:PoompisekK,项目名称:myWork,代码行数:6,代码来源:focus-input.directive.ts
示例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();
}
开发者ID:balynsky,项目名称:ionic2-neighbors,代码行数:9,代码来源:board_item.page.ts
示例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();
}
});
});
开发者ID:jongchun,项目名称:ionicmemo,代码行数:21,代码来源:app.component.ts
示例5: clickOk
clickOk(cb: Channel) {
this.homeData.setChannel(cb);
setTimeout(this.updateData(),200);
this.keyboard.close();
}
开发者ID:NitrofMtl,项目名称:Arduino-Home-Thermostat,代码行数:5,代码来源:config-name.ts
示例6: searchbarFocus
private searchbarFocus(): void {
this.keyboard.show();
this.searchbar.setFocus();
}
开发者ID:PoompisekK,项目名称:myWork,代码行数:4,代码来源:better-search.page.ts
注:本文中的@ionic-native/keyboard.Keyboard类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论