fix(keyboard) isVisible property missing (#2751)

* isVisible property missing

* fix(lint)

* fix(lint) CI

* fix(CordovaProperty) Imported CordovaProperty from core
This commit is contained in:
Faizan Hasan 2018-10-14 16:31:01 +05:00 committed by Daniel Sogl
parent 487acd603b
commit a167bd85aa

View File

@ -1,5 +1,5 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
/** /**
@ -32,6 +32,14 @@ import { Observable } from 'rxjs/Observable';
}) })
@Injectable() @Injectable()
export class Keyboard extends IonicNativePlugin { export class Keyboard extends IonicNativePlugin {
/**
* Check keyboard status visible or not.
* @returns {boolean}
*/
@CordovaProperty
isVisible: boolean;
/** /**
* Hide the keyboard accessory bar with the next, previous and done buttons. * Hide the keyboard accessory bar with the next, previous and done buttons.
* @param hide {boolean} * @param hide {boolean}