UNPKG

@capacitor/keyboard

Version:

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

65 lines (60 loc) 1.75 kB
'use strict'; var core = require('@capacitor/core'); /// <reference types="@capacitor/cli" /> exports.KeyboardStyle = void 0; (function (KeyboardStyle) { /** * Dark keyboard. * * @since 1.0.0 */ KeyboardStyle["Dark"] = "DARK"; /** * Light keyboard. * * @since 1.0.0 */ KeyboardStyle["Light"] = "LIGHT"; /** * On iOS 13 and newer the keyboard style is based on the device appearance. * If the device is using Dark mode, the keyboard will be dark. * If the device is using Light mode, the keyboard will be light. * On iOS 12 the keyboard will be light. * * @since 1.0.0 */ KeyboardStyle["Default"] = "DEFAULT"; })(exports.KeyboardStyle || (exports.KeyboardStyle = {})); exports.KeyboardResize = void 0; (function (KeyboardResize) { /** * Only the `body` HTML element will be resized. * Relative units are not affected, because the viewport does not change. * * @since 1.0.0 */ KeyboardResize["Body"] = "body"; /** * Only the `ion-app` HTML element will be resized. * Use it only for Ionic Framework apps. * * @since 1.0.0 */ KeyboardResize["Ionic"] = "ionic"; /** * The whole native Web View will be resized when the keyboard shows/hides. * This affects the `vh` relative unit. * * @since 1.0.0 */ KeyboardResize["Native"] = "native"; /** * Neither the app nor the Web View are resized. * * @since 1.0.0 */ KeyboardResize["None"] = "none"; })(exports.KeyboardResize || (exports.KeyboardResize = {})); const Keyboard = core.registerPlugin('Keyboard'); exports.Keyboard = Keyboard; //# sourceMappingURL=plugin.cjs.js.map