awesome-cordova-plugins/src/plugins/keyboard.ts

63 lines
1.2 KiB
TypeScript
Raw Normal View History

2016-03-14 03:19:21 +08:00
import {Cordova, Plugin} from './plugin'
import {Observable} from "rxjs/Observable";
/**
* @name Keyboard
* @description
* @usage
* ```js
* import {Keyboard} from 'ionic-native';
*
*
*
* ```
*/
2016-03-14 03:19:21 +08:00
@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 {
console.log("hideKeyboardAccessoryBar method has been removed temporarily.")
}
2016-03-14 03:19:21 +08:00
/**
* Force keyboard to be shown.
* @platforms ['Android','BlackBerry 10','Windows']
2016-03-14 03:19:21 +08:00
*/
@Cordova({
sync: true
})
static show() : void {}
2016-03-14 03:19:21 +08:00
/**
* Close the keyboard if open
* @platforms ['iOS','Android','BlackBerry 10','Windows']
*/
2016-03-14 03:19:21 +08:00
@Cordova({
sync: true
})
static close() : void {}
2016-03-14 03:19:21 +08:00
/**
* Prevents the native UIScrollView from moving when an input is focused.
* @platforms ['iOS','Windows']
* @param disable
*/
2016-03-14 03:19:21 +08:00
@Cordova({
sync: true
})
static disableScroll(disable : boolean) : void {}
2016-03-14 03:19:21 +08:00
}