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