Best code examples for Android InputConnection class (android.view.inputmethod.InputConnection)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android InputConnection class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android InputConnection examples from Open Source projects
This code example shows how to use the following methods: finishComposingText, getTextBeforeCursor, setComposingText
52:	connection.finishComposingText(); 
-
56:	CharSequence charBeforeCursor = connection.getTextBeforeCursor(1, 0); 
-
63:	connection.setComposingText(text, 1); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: commitCorrection
19:	super.commitCorrectionToInputConnection(ic, word); 
-
24:	ic.commitCorrection(correctionInfo); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: commitText, deleteSurroundingText, getTextBeforeCursor
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
This code example shows how to use the following methods: commitText, deleteSurroundingText, getTextBeforeCursor
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
This code example shows how to use the following methods: beginBatchEdit, commitText, endBatchEdit
99:	ic.beginBatchEdit(); 
100:	ic.commitText(text, 1); 
101:	ic.endBatchEdit(); 
-
103:	ic.commitText(text, 1); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getExtractedText
83:	ExtractedText et = conn.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginBatchEdit, commitText, endBatchEdit
99:	ic.beginBatchEdit(); 
100:	ic.commitText(text, 1); 
101:	ic.endBatchEdit(); 
-
103:	ic.commitText(text, 1); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: commitText
31:	ic.commitText(word.getPreferredWord(), 1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: finishComposingText, getTextBeforeCursor, setComposingText
52:	connection.finishComposingText(); 
-
56:	CharSequence charBeforeCursor = connection.getTextBeforeCursor(1, 0); 
-
63:	connection.setComposingText(text, 1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginBatchEdit, commitText, endBatchEdit
99:	inputView = (SoftKeyboardView) getLayoutInflater().inflate( 
100:	R.layout.input, null); 
101:	inputView.setOnKeyboardActionListener(this); 
-
103:	} 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginBatchEdit, commitText, endBatchEdit
336:	inputConnection.commitText(mComposing, mComposing.length()); 
-
420:	ic.beginBatchEdit(); 
-
423:	ic.commitText(text, 0); 
424:	ic.endBatchEdit(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: sendKeyEvent
259:	getCurrentInputConnection().sendKeyEvent( 
260:	new KeyEvent(KeyEvent.ACTION_UP, keyEventCode)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginBatchEdit, commitText, endBatchEdit
371:	ic.beginBatchEdit(); 
372:	ic.commitText(text, 0); 
373:	ic.endBatchEdit(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginBatchEdit, commitText, endBatchEdit
99:	ic.beginBatchEdit(); 
100:	ic.commitText(text, 1); 
101:	ic.endBatchEdit(); 
-
103:	ic.commitText(text, 1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getTextBeforeCursor
131:	return baseConnection.getTextBeforeCursor(n, flags); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getExtractedText
150:	final ExtractedText t = this.getCurrentInputConnection() 
151:	.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getExtractedText
82:	ExtractedText et = conn.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getExtractedText
82:	ExtractedText et = conn.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getExtractedText
83:	ExtractedText et = conn.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: clearMetaKeyStates, commitText
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
This code example shows how to use the following methods: getExtractedText
82:	ExtractedText et = conn.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: performEditorAction
57:	ic.performEditorAction(OBJ_IME_ACTION_PREVIOUS); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginBatchEdit, endBatchEdit
339:	ic.beginBatchEdit(); 
-
341:	ic.endBatchEdit(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: beginBatchEdit, endBatchEdit
328:	ic.beginBatchEdit(); 
-
330:	ic.endBatchEdit(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getExtractedText
199:	ExtractedText et = getCurrentInputConnection() 
200:	.getExtractedText(new ExtractedTextRequest(), 0); 
Full Snippet Info
4
CodeRank
Related Android InputConnection Questions & Answers:
See Code Examples for Android InputConnection Methods: