The Keyboard API provides keyboard display and visibility control, along with event tracking when the keyboard shows and hides.
Keyboard.show();
...
Keyboard.hide();
...
var subs = Keyboard.onKeyboardShow().subscribe(()=>{
...
});
...
subs.unsubscribe();
window.Keyboard.show();
...
window.Keyboard.hide();
...
setwatchKeyboardSubscrition(window.Keyboard.onKeyboardShow().subscribe(() => {
...
}));
...
setwatchKeyboardSubscrition(watchKeyboardSubscrition.unsubscribe());
window.Keyboard.show();
...
window.Keyboard.hide();
...
this.subs = window.Keyboard.onKeyboardShow().subscribe(() => {
...
});
...
this.subs.unsubscribe();
(<any>window).Keyboard.show();
...
(<any>window).Keyboard.hide();
...
this.subs = (<any>window).Keyboard.onKeyboardShow().subscribe(() => {
...
});
...
this.subs.unsubscribe();
window.Keyboard.show();
...
window.Keyboard.hide();
...
subs = window.Keyboard.onKeyboardShow().subscribe(() => {
...
});
...
subs.unsubscribe();
onkeyboardDidHide(): Observable<any>
Creates an observable that notifies you when the keyboard did hide. Unsubscribe to observable to cancel event watch.
onkeyboardDidShow(): Observable<any>
Creates an observable that notifies you when the keyboard did show. Unsubscribe to observable to cancel event watch.
onkeyboardHide(): Observable<any>
Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch.
onkeyboardShow(): Observable<any>
Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch.
onkeyboardWillHide(): Observable<any>
Creates an observable that notifies you when the keyboard will hide. Unsubscribe to observable to cancel event watch.
onkeyboardWillShow(): Observable<any>
Creates an observable that notifies you when the keyboard will show. Unsubscribe to observable to cancel event watch.