mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 17:05:34 +00:00
39 lines
658 B
Markdown
39 lines
658 B
Markdown
---
|
|
title: KMManager.onDestroy()
|
|
---
|
|
|
|
## Summary
|
|
|
|
The **`onDestroy()`** method performs necessary actions in an
|
|
InputMethodService's `onDestroy()`.
|
|
|
|
## Syntax
|
|
|
|
``` javascript
|
|
KMManager.onDestroy()
|
|
```
|
|
|
|
## Description
|
|
|
|
To be called from an InputMethodService's `onDestroy()` method.
|
|
|
|
## Examples
|
|
|
|
### Example: Using `onDestroy()`
|
|
|
|
The following script illustrate the use of `onDestroy()`:
|
|
|
|
``` javascript
|
|
@Override
|
|
public void onDestroy() {
|
|
// ...
|
|
KMManager.onDestroy();
|
|
super.onDestroy();
|
|
}
|
|
```
|
|
|
|
## See also
|
|
|
|
- [`createInputView()`](createInputView)
|
|
- [`onStartInput()`](onStartInput)
|
|
- [`onConfigurationChanged()`](onConfigurationChanged)
|