Keyboard

The Keyboard API provides keyboard display and visibility control, along with event tracking when the keyboard shows and hides.

Usage
Keyboard.show();

...

Keyboard.hide();

...

var subs = Keyboard.onKeyboardShow().subscribe(()=>{
    ...
});

...

subs.unsubscribe();
window.Keyboard.show();

...

window.Keyboard.hide();

...

setwatchKeyboardSubscrition(window.Keyboard.onKeyboardShow().subscribe(() => {
    ...
}));

...

setwatchKeyboardSubscrition(watchKeyboardSubscrition.unsubscribe());
window.Keyboard.show();

...

window.Keyboard.hide();

...

this.subs = window.Keyboard.onKeyboardShow().subscribe(() => {
    ...
});

...

this.subs.unsubscribe();
(<any>window).Keyboard.show();

...

(<any>window).Keyboard.hide();

...

this.subs = (<any>window).Keyboard.onKeyboardShow().subscribe(() => {
    ...
});

...

this.subs.unsubscribe();
window.Keyboard.show();

...

window.Keyboard.hide();

...

subs = window.Keyboard.onKeyboardShow().subscribe(() => {
    ...
});

...

subs.unsubscribe();

Classes


Keyboard

isVisible
isVisible: boolean

Check keyboard status visible or not.

hide
hide(): void

Hide the keyboard if shown.


RETURN
returns: void
onkeyboardDidHide
onkeyboardDidHide(): Observable<any>

Creates an observable that notifies you when the keyboard did hide. Unsubscribe to observable to cancel event watch.


RETURN
returns: Observable<any>
onkeyboardDidShow
onkeyboardDidShow(): Observable<any>

Creates an observable that notifies you when the keyboard did show. Unsubscribe to observable to cancel event watch.


RETURN
returns: Observable<any>
onkeyboardHide
onkeyboardHide(): Observable<any>

Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch.


RETURN
returns: Observable<any>
onkeyboardShow
onkeyboardShow(): Observable<any>

Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch.


RETURN
returns: Observable<any>
onkeyboardWillHide
onkeyboardWillHide(): Observable<any>

Creates an observable that notifies you when the keyboard will hide. Unsubscribe to observable to cancel event watch.


RETURN
returns: Observable<any>
onkeyboardWillShow
onkeyboardWillShow(): Observable<any>

Creates an observable that notifies you when the keyboard will show. Unsubscribe to observable to cancel event watch.


RETURN
returns: Observable<any>
show
show(): void

Force keyboard to be shown.


RETURN
returns: void