Code example for InputConnection

Methods: beginBatchEdit

0
    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();
            }