> For the complete documentation index, see [llms.txt](https://ja.docs.monaca.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ja.docs.monaca.io/tutorials/ionic_keyboard.md).

# Cordova Ionic Keyboard プラグイン

Cordova アプリ用のキーボードプラグインです。

* Repo: <https://github.com/ionic-team/cordova-plugin-ionic-keyboard>
* Plugin ID/Package Name: `cordova-plugin-ionic-keyboard`
* Tested Version: `2.2.0`

{% hint style="info" %}
サードパーティー製 Cordova プラグインを確認する場合は、カスタムビルドデバッガー ( [Android 版](/products_guide/debugger/installation/debugger_android.md#kasutamubirudo-monaca-debaggnobirudotoinsutru) または [iOS 版](/products_guide/debugger/installation/debugger_ios.md#kasutamubirudo-monaca-debaggnobirudo) ) を作成する必要があります。
{% endhint %}

## デモ

[<img src="https://docs.monaca.io/images/common/import_img.png" alt="" data-size="line">プロジェクトをインポート](https://monaca.mobi/ja/directimport?pid=64b778bae788852a64ea01cc)

![](/files/-MgyDZVENG5k1kxSjjbA)

## Monaca クラウド IDE でプラグインを有効にする

1. IDE メニューか&#x3089;**`設定 → Cordova プラグインの管理`**&#x3078;移動します。
2. `Cordova プラグインのインポート`ボタンをクリックします。 次に、\[ZIP ファイル] または \[パッケージ名 / URL] を使用してプラグインをインポートします。

## API リファレンス

このページでは、[デモ](https://monaca.mobi/directimport?pid=5b29e4e1e788857854dba6d9) で使用されている主な API についてのみ説明します。APIリファレンスについては、[こちら](https://github.com/ionic-team/cordova-plugin-ionic-keyboard) を参照してください。

### show()

キーボードを表示します。

```javascript
Keyboard.show();
```

{% hint style="info" %}
`Keyboard.show()` は、プラットフォームの制限により、iOS ではサポートされていません。 代わりに `input` エレメントの `focus()` を使用してください。
{% endhint %}

**例**

```javascript
//For Android
Keyboard.show();

//For iOS
inputElement.focus();
```

### hide()

キーボードを非表示にします。

```javascript
Keyboard.hide();
```

**例**

```javascript
Keyboard.hide();
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ja.docs.monaca.io/tutorials/ionic_keyboard.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
