Code example for InputMethodService

Methods: getCurrentInputConnection

0
		return inputMethodService.getCurrentInputEditorInfo();
	} 
 
	@Nonnull 
	private InputConnection getCurrentInputConnection() {
		InputConnection result = this.inputMethodService.getCurrentInputConnection();
		if (result == null) {
			result = NoInputConnection.getInstance();
		} 
		return result;
	} 
 
	@Override 
	public CharSequence getTypedText() {
		return typedText;
	} 
 
	@Override 
	public void clearTypedText() { 
		this.typedText.setLength(0);
	}