Skip to content

Commit

Permalink
feat(plugin): add keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Mar 13, 2016
1 parent 765ef48 commit a80c4ee
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/plugins/keyboard.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import {Cordova, Plugin} from './plugin'
import {Observable} from "rxjs/Observable";

@Plugin({
plugin: 'ionic-plugin-keyboard',
pluginRef: 'cordova.plugins.Keyboard',
repo: 'https://github.com/driftyco/ionic-plugin-keyboard'
})
export class Keyboard {

/**
* Hide the keyboard accessory bar with the next, previous and done buttons.
* @param hide {boolean}
*/
@Cordova({
sync: true
})
static hideKeyboardAccessoryBar(hide : boolean) : void {}

/**
* Close the keyboard if open
*/
@Cordova({
sync: true
})
static close() : void {}

@Cordova({
sync: true
})
static disableScroll(disable : boolean) : void {}

@Cordova({
sync: true
})
static show() : void {}

@Cordova({
sync: true
})
static close() : void {}

//static onKeyboardShow() : Observable<any> {
// return new Observable(
// observer => {
//
// }
// );
//}
}

0 comments on commit a80c4ee

Please sign in to comment.