-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12656 from keymanapp/chore/merge-master-into-wind…
…ows-updates chore: merge master into windows-updates 💽
- Loading branch information
Showing
1,098 changed files
with
141,476 additions
and
815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18.0.131 | ||
18.0.138 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: KMKeyboard class | ||
--- | ||
|
||
## Summary | ||
|
||
The **`KMKeyboard`** class provides Keyman's methods for extending an Android WebView | ||
|
||
## Syntax | ||
|
||
```java | ||
KMKeyboard.methodName() | ||
``` | ||
|
||
## Description | ||
|
||
The KMKeyboard is the core class which provides most of the methods you will need to develop an in-app or system keyboard with Keyman Engine | ||
|
||
<!-- Fill in examples of how to use, etc. --> | ||
|
||
## Methods | ||
|
||
`getShouldShowHelpBubble()` | ||
: get the stored preference whether to show the help bubble on the globe key | ||
|
||
`setShouldShowHelpBubble()` | ||
: sets the stored preference whether to show the help bubble on the globe key | ||
|
||
`initKMKeyboard()` | ||
: initialize the KMKeyboard WebView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
--- | ||
title: KMManager.addKeyboard() | ||
--- | ||
|
||
## Summary | ||
|
||
The **`addKeyboard()`** method adds a keyboard into the keyboards list. | ||
|
||
## Syntax | ||
|
||
``` javascript | ||
KMManager.addKeyboard(Context context, Keyboard keyboardInfo) | ||
``` | ||
|
||
### Parameters | ||
|
||
`context` | ||
: The context. | ||
|
||
`keyboardInfo` | ||
: A `Keyboard` type of keyboard information. | ||
|
||
### Returns | ||
|
||
Returns `true` if the keyboard was added successfully, `false` | ||
otherwise. | ||
|
||
## Description | ||
|
||
Use this method to include a keyboard in the keyboards list so that it | ||
can be selected from the keyboards menu. If the keyboard with same | ||
keyboard ID and language ID exists, it updates the existing keyboard | ||
info. | ||
|
||
|
||
|
||
------------------------------------------------------------------------ | ||
|
||
## Syntax (Deprecated) | ||
|
||
``` javascript | ||
KMManager.addKeyboard(Context context, HashMap<String, String> keyboardInfo) | ||
``` | ||
|
||
### Parameters | ||
|
||
`context` | ||
: The context. | ||
|
||
`keyboardInfo` | ||
: A dictionary of keyboard information with keys and values defined as | ||
`HashMap<String key, String value>`. | ||
|
||
### Returns | ||
|
||
Returns `true` if the keyboard was added successfully, `false` | ||
otherwise. | ||
|
||
## Description | ||
|
||
Use this method to include a keyboard in the keyboards list so that it | ||
can be selected from the keyboards menu. If the keyboard with same | ||
keyboard ID and language ID exists, it updates the existing keyboard | ||
info. | ||
|
||
|
||
|
||
------------------------------------------------------------------------ | ||
|
||
## Examples | ||
|
||
### Example: Using `addKeyboard()` | ||
|
||
The following script illustrate the use of `addKeyboard()`: | ||
|
||
``` javascript | ||
// Add a custom keyboard | ||
Keyboard kbInfo = new Keyboard( | ||
"basic_kbdtam99", // Package ID - filename of the .kmp file | ||
"basic_kbdtam99", // Keyboard ID - filename of the .js file | ||
"Tamil 99 Basic", // Keyboard Name | ||
"ta", // Language ID | ||
"Tamil", // Language Name | ||
"1.0", // Keyboard Version | ||
null, // URL to help documentation if available | ||
null, // URL to latest .kmp file | ||
true, // Boolean to show this is a new keyboard in the keyboard picker | ||
|
||
// Font information of the .ttf font to use in KMSample2 (for example "aava1.ttf"). | ||
// basic_kbdtam99 doesn't include a font. Can set blank "" or KMManager.KMDefault_KeyboardFont | ||
// KMEA will use the font for the OSK, but the Android device determines the system font used for keyboard output | ||
KMManager.KMDefault_KeyboardFont, // Font for KMSample2 | ||
KMManager.KMDefault_KeyboardFont); // Font for OSK | ||
|
||
KMManager.addKeyboard(this, kbInfo); | ||
``` | ||
|
||
## History | ||
|
||
Added syntax using Keyboard type parameter in Keyman Engine for Android | ||
14.0. | ||
|
||
Deprecated syntax using the HashMap<String key, String value> | ||
parameter in Keyman Engine for Android 14.0 | ||
|
||
## See also | ||
|
||
- [`removeKeyboard()`](removeKeyboard) |
46 changes: 46 additions & 0 deletions
46
android/docs/engine/KMManager/addKeyboardDownloadEventListener.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: KMManager.addKeyboardDownloadEventListener() | ||
--- | ||
|
||
## Summary | ||
|
||
The **`addKeyboardDownloadEventListener()`** method adds the specified | ||
listener into the list of keyboard download event listeners. | ||
|
||
## Syntax | ||
|
||
``` javascript | ||
KMManager.addKeyboardDownloadEventListener(OnKeyboardDownloadEventListener listener) | ||
``` | ||
|
||
### Parameters | ||
|
||
`listener` | ||
: The listener to receive keyboard download event notifications. | ||
|
||
## Description | ||
|
||
Use this method to add a listener to receive keyboard download event | ||
notifications. The listener must implement | ||
`KMManager.OnKeyboardDownloadEventListener` interface. | ||
|
||
## Examples | ||
|
||
### Example: Using `addKeyboardDownloadEventListener()` | ||
|
||
The following script illustrate the use of | ||
`addKeyboardDownloadEventListener()`: | ||
|
||
``` javascript | ||
@Override | ||
protected void onResume() { | ||
super.onResume(); | ||
// ... | ||
KMManager.addKeyboardDownloadEventListener(this); | ||
// ... | ||
} | ||
``` | ||
|
||
## See also | ||
|
||
- [`removeKeyboardDownloadEventListener()`](removeKeyboardDownloadEventListener) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: KMManager.addKeyboardEventListener() | ||
--- | ||
|
||
## Summary | ||
|
||
The **`addKeyboardEventListener()`** method adds the specified listener | ||
into the list of keyboard event listeners. | ||
|
||
## Syntax | ||
|
||
``` javascript | ||
KMManager.addKeyboardEventListener(OnKeyboardEventListener listener) | ||
``` | ||
|
||
### Parameters | ||
|
||
`listener` | ||
: The listener to receive keyboard event notifications. | ||
|
||
## Description | ||
|
||
Use this method to add a listener to receive keyboard event | ||
notifications. The listener must implement | ||
KMManager.OnKeyboardEventListener interface. | ||
|
||
## Examples | ||
|
||
### Example: Using `addKeyboardEventListener()` | ||
|
||
The following script illustrate the use of `addKeyboardEventListener()`: | ||
|
||
``` javascript | ||
@Override | ||
protected void onResume() { | ||
super.onResume(); | ||
// ... | ||
KMManager.addKeyboardEventListener(this); | ||
// ... | ||
} | ||
``` | ||
|
||
## See also | ||
|
||
- [`removeKeyboardEventListener()`](removeKeyboardEventListener) |
Oops, something went wrong.