ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
191 stars 177 forks source link

Whats the difference between the two iOS hide keyboard accessory bar options? #160

Open rolinger opened 3 years ago

rolinger commented 3 years ago

Whats the difference between the following two, iOS only, hide accessory bar options? Can both be set from config.xml and/or be set from in the code? If the same, whats the point of having two different options?

**HideKeyboardFormAccessoryBar** (for iOS only)
Boolean (true by default)
   true: hides the keyboard accessory bar.
   false: shows the keyboard accessory bar.
   <preference name="HideKeyboardFormAccessoryBar" value="false" />

**Keyboard.hideFormAccessoryBar** (for iOS only)
Hide the keyboard toolbar.
Set to true to hide the additional toolbar that is on top of the keyboard. This toolbar features the Prev, Next, and Done buttons.
   Keyboard.hideFormAccessoryBar(value, successCallback);
Michael-Stanford commented 2 years ago

One is a method, the other a preference. The 'HideKeyboardFormAccessoryBar' preference is set in config.xml, and sets the default mode for your app. The 'Keyboard.hideFormAccessoryBar' method is used in your script for changing the preference while your app is running.