Keyboard

Improve this doc

$ ionic plugin add ionic-plugin-keyboard

Repo: https://github.com/driftyco/ionic-plugin-keyboard

Usage

import { Keyboard } from 'ionic-native';

Static Members

hideKeyboardAccessoryBar(hide)

Hide the keyboard accessory bar with the next, previous and done buttons.

Param Type Details
hide boolean

show()

Platforms: Android  BlackBerry 10  Windows 

Force keyboard to be shown.

close()

Platforms: iOS  Android  BlackBerry 10  Windows 

Close the keyboard if open.

disableScroll(disable)

Platforms: iOS  Windows 

Prevents the native UIScrollView from moving when an input is focused.

Param Type Details
disable

onKeyboardShow()

Platforms: iOS  Android  BlackBerry 10  Windows 

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

Returns: Observable<any>

onKeyboardHide()

Platforms: iOS  Android  BlackBerry 10  Windows 

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

Returns: Observable<any>

API

Native

General