Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 18.0Version 17.0 (current version)Version 16.0Version 15.0Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0Version 2.0

Index

On this page

KMManager.onStartInput()

Summary

The onStartInput() method performs necessary actions in an InputMethodService's onStartInput().

Syntax

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():

@Override
public void onStartInput(EditorInfo attribute, boolean restarting) {
    // ...
    super.onStartInput(attribute, restarting);
    KMManager.onStartInput(attribute, restarting);
    // ...
}

See also