Code example for CompletionInfo

Methods: getPositiongetText

0
 
		@Override 
		public boolean commitCompletion(CompletionInfo text) {
			log("commitCompletion="+text);
			try { 
				mCommitText = text.getText();
				addCommitText(new CommitText(text.getText(), text.getPosition()));
				return super.commitCompletion(text);
			} finally { 
				mComposingText = "";
				getEditable().clear();
			} 
		} 
 
		@Override 
		public boolean commitText(CharSequence text, int newCursorPosition) {
			log("commitText="+text+","+newCursorPosition);
			mController.decorateKey(mCurrentInputConnection, text, newCursorPosition, false, false/*ctk*/, false/*alt*/);		
			mCommitText = text;
			try{ 
Contextual code suggestions in your IDE  Get Codota for Java