Code examples for InputConnection

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
52:	connection.finishComposingText(); 
-
56:	CharSequence charBeforeCursor = connection.getTextBeforeCursor(1, 0); 
-
63:	connection.setComposingText(text, 1); 
Full Snippet Info
7
CodeRank
19:	super.commitCorrectionToInputConnection(ic, word); 
-
24:	ic.commitCorrection(correctionInfo); 
Full Snippet Info
6
CodeRank
36:	prefix = inputContext.getTextBeforeCursor(2, 0); 
-
64:	inputContext.deleteSurroundingText(1, 0); 
-
75:	inputContext.commitText(insert, insert.length()); 
-
91:	inputContext.commitText(result, result.length()); 
Full Snippet Info
6
CodeRank
99:	ic.beginBatchEdit(); 
100:	ic.commitText(text, 1); 
101:	ic.endBatchEdit(); 
-
103:	ic.commitText(text, 1); 
Full Snippet Info
6
CodeRank
83:	ExtractedText et = conn.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
6
CodeRank
99:	ic.beginBatchEdit(); 
100:	ic.commitText(text, 1); 
101:	ic.endBatchEdit(); 
-
103:	ic.commitText(text, 1); 
Full Snippet Info
6
CodeRank
31:	ic.commitText(word.getPreferredWord(), 1); 
Full Snippet Info
5
CodeRank
52:	connection.finishComposingText(); 
-
56:	CharSequence charBeforeCursor = connection.getTextBeforeCursor(1, 0); 
-
63:	connection.setComposingText(text, 1); 
Full Snippet Info
5
CodeRank
99:	inputView = (SoftKeyboardView) getLayoutInflater().inflate( 
100:	R.layout.input, null); 
101:	inputView.setOnKeyboardActionListener(this); 
-
103:	} 
Full Snippet Info
5
CodeRank
336:	inputConnection.commitText(mComposing, mComposing.length()); 
-
420:	ic.beginBatchEdit(); 
-
423:	ic.commitText(text, 0); 
424:	ic.endBatchEdit(); 
Full Snippet Info
5
CodeRank
371:	ic.beginBatchEdit(); 
372:	ic.commitText(text, 0); 
373:	ic.endBatchEdit(); 
Full Snippet Info
5
CodeRank
99:	ic.beginBatchEdit(); 
100:	ic.commitText(text, 1); 
101:	ic.endBatchEdit(); 
-
103:	ic.commitText(text, 1); 
Full Snippet Info
5
CodeRank
82:	ExtractedText et = conn.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
5
CodeRank
82:	ExtractedText et = conn.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
5
CodeRank
192:	ic.clearMetaKeyStates(event.getMetaState()); 
-
194:	ic.commitText(smallCaps, 1); 
-
196:	ic.commitText(caps, 1); 
-
211:	ic.commitText(caps, 1); 
Full Snippet Info
5
CodeRank
57:	ic.performEditorAction(OBJ_IME_ACTION_PREVIOUS); 
Full Snippet Info
5
CodeRank
36:	prefix = inputContext.getTextBeforeCursor(2, 0); 
-
64:	inputContext.deleteSurroundingText(1, 0); 
-
75:	inputContext.commitText(insert, insert.length()); 
-
91:	inputContext.commitText(result, result.length()); 
Full Snippet Info
-16
CodeRank