mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 08:25:32 +00:00
34 lines
946 B
Markdown
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)
|