Code example for InputConnection

Methods: sendKeyEvent

0
                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);
            } 
 
            public boolean setSelection(int start, int end) {
                Log.w(TAG, "setSelection" + start + "," + end);
                return ic.setSelection(start,end);
            } 
             
            /* 
            public boolean setComposingRegion(int a, int b) { 
                Log.w(TAG, "setComposingRegion(\"" + "\", " +  ")");