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