Code example for InputConnection

Methods: beginBatchEdit

    public InputConnection onCreateInputConnection(EditorInfo edit){
        final InputConnection  ic=super.onCreateInputConnection(edit);
        return new InputConnection(){
            public boolean beginBatchEdit() { 
                Log.w(TAG, "beginBatchEdit");
                return ic.beginBatchEdit();
            public boolean clearMetaKeyStates(int arg0) {
                Log.w(TAG, "clearMetaKeyStates " + arg0);
                return ic.clearMetaKeyStates(arg0);
            public boolean commitCompletion(CompletionInfo arg0) {
                Log.w(TAG, "commitCompletion " + arg0);
                return ic.commitCompletion(arg0);
            public boolean endBatchEdit() { 
                Log.w(TAG, "endBatchEdit");
                return ic.endBatchEdit();
Connect your IDE to all the code out there  Get Codota for Java