gabrielribeiro / cordova-plugin-keyboard-appearance

This plugin lets you change UIKeyboardAppearance of Keyboard with values light or dark. It also supports the KeyboardStyle (string) preference in config.xml.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cordova-plugin-keyboard-appearance

This plugin lets you change UIKeyboardAppearance of Keyboard with values light or dark. It also supports the KeyboardStyle (string) preference in config.xml. BASED ON THIS cjpearson commit.

This plugin has only been tested in Cordova 3.2 or greater, and its use in previous Cordova versions is not recommended (potential conflict with keyboard customization code present in the core in previous Cordova versions).

Installation

From npm (stable)

cordova plugin add cordova-plugin-keyboard-appearance

From github latest (may not be stable)

cordova plugin add https://github.com/gabrielribeiro/cordova-plugin-keyboard-appearance

Methods

cordova.plugins.keyboardAppearance.setStyle

Sets style wihtin UIKeyboardAppearance.

cordova.plugins.keyboardAppearance.setStyle(style);

Description

Sets style wihtin UIKeyboardAppearance.

Supported Platforms

  • iOS

Quick Example

cordova.plugins.keyboardAppearance.setStyle('light');
cordova.plugins.keyboardAppearance.setStyle('dark');

Supported Platforms

  • iOS

Releases

  • 0.1.0
    • Initial release
  • 0.2.0
    • Added setting key
    • Fixed toolbar color

About

This plugin lets you change UIKeyboardAppearance of Keyboard with values light or dark. It also supports the KeyboardStyle (string) preference in config.xml.


Languages

Language:Objective-C 94.8%Language:JavaScript 5.2%