import { Keyboard } from '@ionic-native/keyboard' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class KeyboardMock extends Keyboard { param hide { boolean } hideKeyboardAccessoryBar ( hide ) { } ; /**
     * Force keyboard to be shown.
     */ show ( ) { } ; /**
     * Close the keyboard if open.
     */ close ( ) { } ; param disable { boolean } disableScroll ( disable ) { } ; returns { Observable < any > } onKeyboardShow ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; returns { Observable < any > } onKeyboardHide ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; }