Skip to content

Commit

Permalink
feat(keyboard): add event listeners for keyboard show/hide events
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Mar 24, 2016
1 parent 74690d1 commit c947437
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/plugins/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,24 @@ export class Keyboard {
})
static disableScroll(disable : boolean) : void {}

/**
* Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch.
* @platforms ['iOS','Android','BlackBerry 10','Windows']
*/
@Cordova({
eventObservable: true,
event: 'native.keyboardshow'
})
static onKeybardShow() : Observable<any> {return}

/**
* Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch.
* @platforms ['iOS','Android','BlackBerry 10','Windows']
*/
@Cordova({
eventObservable: true,
event: 'native.keyboardhide'
})
static onKeybardHide() : Observable<any> {return}

}

0 comments on commit c947437

Please sign in to comment.