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

49 lines
989 B
Markdown

---
title: KMManager.onStartInput()
---
## Summary
The **`onStartInput()`** method performs necessary actions in an
InputMethodService's `onStartInput()`.
## Syntax
``` javascript
KMManager.onStartInput(EditorInfo attribute, boolean restarting)
```
### Parameters
`attribute`
: Description of the type of text being edited.
`restarting`
: Set to true if we are restarting input on the same text field as
before.
## Description
To be called from an InputMethodService's `onStartInput()` method.
## Examples
### Example: Using `onStartInput()`
The following script illustrate the use of `onStartInput()`:
``` javascript
@Override
public void onStartInput(EditorInfo attribute, boolean restarting) {
// ...
super.onStartInput(attribute, restarting);
KMManager.onStartInput(attribute, restarting);
// ...
}
```
## See also
- [`createInputView()`](createInputView)
- [`onConfigurationChanged()`](onConfigurationChanged)
- [`onDestroy()`](onDestroy)