arnaucube
arnaucube/openEventsPlatformAppPublic Self-hosted repository
openEventsPlatformApp/plugins/ionic-plugin-keyboard/www/ios/keyboard.js
plugins/ionic-plugin-keyboard/www/ios/keyboard.jsRaw
 1
 2var argscheck = require('cordova/argscheck'),
 3    utils = require('cordova/utils'),
 4    exec = require('cordova/exec');
 5
 6
 7var Keyboard = function() {
 8};
 9
10Keyboard.hideKeyboardAccessoryBar = function(hide) {
11    exec(null, null, "Keyboard", "hideKeyboardAccessoryBar", [hide]);
12};
13
14Keyboard.close = function() {
15    exec(null, null, "Keyboard", "close", []);
16};
17
18Keyboard.show = function() {
19    console.warn('Showing keyboard not supported in iOS due to platform limitations.')
20    console.warn('Instead, use input.focus(), and ensure that you have the following setting in your config.xml: \n');
21    console.warn('    <preference name="KeyboardDisplayRequiresUserAction" value="false"/>\n');
22    // exec(null, null, "Keyboard", "show", []);
23};
24
25Keyboard.disableScroll = function(disable) {
26    exec(null, null, "Keyboard", "disableScroll", [disable]);
27};
28
29/*
30Keyboard.styleDark = function(dark) {
31 exec(null, null, "Keyboard", "styleDark", [dark]);
32};
33*/
34
35Keyboard.isVisible = false;
36
37module.exports = Keyboard;
38
39
40