mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
chore(tslint): add tslint & clean up code
This commit is contained in:
+14
-17
@@ -1,5 +1,5 @@
|
||||
import {Cordova, Plugin} from './plugin'
|
||||
import {Observable} from "rxjs/Observable";
|
||||
import {Cordova, Plugin} from './plugin';
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
|
||||
/**
|
||||
* @name Keyboard
|
||||
@@ -23,11 +23,8 @@ 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.")
|
||||
static hideKeyboardAccessoryBar(hide: boolean): void {
|
||||
console.log('hideKeyboardAccessoryBar method has been removed temporarily.');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,18 +32,18 @@ export class Keyboard {
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true,
|
||||
platforms: ['Android','BlackBerry 10','Windows']
|
||||
platforms: ['Android', 'BlackBerry 10', 'Windows']
|
||||
})
|
||||
static show() : void {}
|
||||
static show(): void {}
|
||||
|
||||
/**
|
||||
* Close the keyboard if open
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true,
|
||||
platforms: ['iOS','Android','BlackBerry 10','Windows']
|
||||
platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows']
|
||||
})
|
||||
static close() : void {}
|
||||
static close(): void {}
|
||||
|
||||
/**
|
||||
* Prevents the native UIScrollView from moving when an input is focused.
|
||||
@@ -54,9 +51,9 @@ export class Keyboard {
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true,
|
||||
platforms: ['iOS','Windows']
|
||||
platforms: ['iOS', 'Windows']
|
||||
})
|
||||
static disableScroll(disable : boolean) : void {}
|
||||
static disableScroll(disable: boolean): void {}
|
||||
|
||||
/**
|
||||
* Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch.
|
||||
@@ -64,9 +61,9 @@ export class Keyboard {
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'native.keyboardshow',
|
||||
platforms: ['iOS','Android','BlackBerry 10','Windows']
|
||||
platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows']
|
||||
})
|
||||
static onKeyboardShow() : Observable<any> {return}
|
||||
static onKeyboardShow(): Observable<any> {return; }
|
||||
|
||||
/**
|
||||
* Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch.
|
||||
@@ -74,8 +71,8 @@ export class Keyboard {
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'native.keyboardhide',
|
||||
platforms: ['iOS','Android','BlackBerry 10','Windows']
|
||||
platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows']
|
||||
})
|
||||
static onKeyboardHide() : Observable<any> {return}
|
||||
static onKeyboardHide(): Observable<any> {return; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user