mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-13 19:29:37 +08:00
40 lines
754 B
TypeScript
40 lines
754 B
TypeScript
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 {}
|
|
|
|
// TODO add event listener
|
|
|
|
} |