refactor(keyboard):

This commit is contained in:
Guille 2016-07-17 19:58:05 +02:00
parent 77447975b2
commit 24910aacee

View File

@ -1,5 +1,6 @@
import {Cordova, Plugin} from './plugin'; import { Cordova, Plugin } from './plugin';
import {Observable} from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
/** /**
* @name Keyboard * @name Keyboard
@ -34,7 +35,7 @@ export class Keyboard {
sync: true, sync: true,
platforms: ['Android', 'BlackBerry 10', 'Windows'] platforms: ['Android', 'BlackBerry 10', 'Windows']
}) })
static show(): void {} static show(): void { }
/** /**
* Close the keyboard if open. * Close the keyboard if open.
@ -43,7 +44,7 @@ export class Keyboard {
sync: true, 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. * Prevents the native UIScrollView from moving when an input is focused.
@ -53,7 +54,7 @@ export class Keyboard {
sync: true, 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. * Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch.
@ -63,7 +64,7 @@ export class Keyboard {
event: 'native.keyboardshow', 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. * Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch.
@ -73,6 +74,6 @@ export class Keyboard {
event: 'native.keyboardhide', 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; }
} }