mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
feat(keyboard): add event listeners for keyboard show/hide events
This commit is contained in:
parent
74690d1622
commit
c947437610
@ -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}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user