Code example for InputConnection

Methods: deleteSurroundingText

0
    return baseConnection.commitText(text, newCursorPosition);
  } 
 
  @Override 
  public boolean deleteSurroundingText(int beforeLength, int afterLength) {
    return baseConnection.deleteSurroundingText(beforeLength, afterLength);
  } 
 
  @Override 
  public boolean endBatchEdit() { 
    return baseConnection.endBatchEdit();
  } 
 
  @Override 
  public boolean finishComposingText() { 
    composingText = "";
    return baseConnection.finishComposingText();
  } 
 
  @Override 
  public int getCursorCapsMode(int reqModes) {