spiegel-keyman/android/docs/engine/KeyboardEventHandler/onLexicalModelInstalled.md
2024-10-31 10:08:17 +07:00

34 lines
946 B
Markdown

---
title: onLexicalModelInstalled()
---
## Summary
The `onLexicalModelInstalled()` event is called when a lexical-model package has been installed.
## Syntax
```java
onLexicalModelInstalled(List<HashMap<String key, String value>> lexicalModelsInstalled)
```
### Parameters
`lexicalModelsInstalled`
The information dictionaries of the lexical-models installed from a lexical-model package with keys and values defined as `List<HashMap<String key, String value>>`.
## Description
Implement this method to handle lexical-model package installed event.
## Examples
### Example: Using `onLexicalModelInstalled()`
The following script illustrate the use of `onLexicalModelInstalled()`:
```java
@Override
public void onLexicalModelInstalled(List<HashMap<String key, String value>> lexicalModelsInstalled) {
// handle lexical-model package installed event here
}
```
## See also
* [onPackageInstalled()](onPackageInstalled)