FileDocCategorySizeDatePackage
InputConnectionWrapper.javaAPI DocAndroid 5.1 API4044Thu Mar 12 22:22:10 GMT 2015android.view.inputmethod

InputConnectionWrapper

public class InputConnectionWrapper extends Object implements InputConnection

Wrapper class for proxying calls to another InputConnection. Subclass and have fun!

Fields Summary
private InputConnection
mTarget
final boolean
mMutable
Constructors Summary
public InputConnectionWrapper(InputConnection target, boolean mutable)

        mMutable = mutable;
        mTarget = target;
    
Methods Summary
public booleanbeginBatchEdit()

        return mTarget.beginBatchEdit();
    
public booleanclearMetaKeyStates(int states)

        return mTarget.clearMetaKeyStates(states);
    
public booleancommitCompletion(CompletionInfo text)

        return mTarget.commitCompletion(text);
    
public booleancommitCorrection(CorrectionInfo correctionInfo)

        return mTarget.commitCorrection(correctionInfo);
    
public booleancommitText(java.lang.CharSequence text, int newCursorPosition)

        return mTarget.commitText(text, newCursorPosition);
    
public booleandeleteSurroundingText(int beforeLength, int afterLength)

        return mTarget.deleteSurroundingText(beforeLength, afterLength);
    
public booleanendBatchEdit()

        return mTarget.endBatchEdit();
    
public booleanfinishComposingText()

        return mTarget.finishComposingText();
    
public intgetCursorCapsMode(int reqModes)

        return mTarget.getCursorCapsMode(reqModes);
    
public ExtractedTextgetExtractedText(ExtractedTextRequest request, int flags)

        return mTarget.getExtractedText(request, flags);
    
public java.lang.CharSequencegetSelectedText(int flags)

        return mTarget.getSelectedText(flags);
    
public java.lang.CharSequencegetTextAfterCursor(int n, int flags)

        return mTarget.getTextAfterCursor(n, flags);
    
public java.lang.CharSequencegetTextBeforeCursor(int n, int flags)

        return mTarget.getTextBeforeCursor(n, flags);
    
public booleanperformContextMenuAction(int id)

        return mTarget.performContextMenuAction(id);
    
public booleanperformEditorAction(int editorAction)

        return mTarget.performEditorAction(editorAction);
    
public booleanperformPrivateCommand(java.lang.String action, android.os.Bundle data)

        return mTarget.performPrivateCommand(action, data);
    
public booleanreportFullscreenMode(boolean enabled)

        return mTarget.reportFullscreenMode(enabled);
    
public booleanrequestCursorUpdates(int cursorUpdateMode)

        return mTarget.requestCursorUpdates(cursorUpdateMode);
    
public booleansendKeyEvent(android.view.KeyEvent event)

        return mTarget.sendKeyEvent(event);
    
public booleansetComposingRegion(int start, int end)

        return mTarget.setComposingRegion(start, end);
    
public booleansetComposingText(java.lang.CharSequence text, int newCursorPosition)

        return mTarget.setComposingText(text, newCursorPosition);
    
public booleansetSelection(int start, int end)

        return mTarget.setSelection(start, end);
    
public voidsetTarget(InputConnection target)
Change the target of the input connection.

        if (mTarget != null && !mMutable) {
            throw new SecurityException("not mutable");
        }
        mTarget = target;