Code example for InputConnection

Methods: commitText

0
			AskOnGestureListener listener) {
		return new GestureDetector(appContext, listener, null);
	} 
	 
	public void commitCorrectionToInputConnection(InputConnection ic, WordComposer word) {
		ic.commitText(word.getPreferredWord(), 1);
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java