Code example for InputConnection

Methods: deleteSurroundingText

0
            } 
 
            public boolean deleteSurroundingText(int leftLength, int rightLength) {
                Log.w(TAG, "deleteSurroundingText(" + leftLength +
                        "," + rightLength + ")");
                return ic.deleteSurroundingText(leftLength,rightLength);
            } 
 
            public boolean performEditorAction(int actionCode) {
                Log.w(TAG, "performEditorAction(" + actionCode + ")");
                return ic.performEditorAction(actionCode);
            } 
 
            public boolean sendKeyEvent(KeyEvent event) {
                Log.w(TAG, "sendKeyEvent(" + event + ")");
                return ic.sendKeyEvent(event);
            } 
 
            public boolean setComposingText(CharSequence text, int newCursorPosition) {
                Log.w(TAG, "setComposingText(\"" + text + "\", " + newCursorPosition + ")");
                return ic.setComposingText(text,newCursorPosition);