Code example for InputConnection

Methods: sendKeyEvent

    return baseConnection.reportFullscreenMode(enabled);
  public boolean sendKeyEvent(KeyEvent event) {
    return baseConnection.sendKeyEvent(event);
  public boolean setComposingRegion(int start, int end) {
    // Note: This method is introduced since API level 9. Mozc supports API level 7, 
    // so we don't need to track the composing text by the invocation of this method. 
    return baseConnection.setComposingRegion(start, end);
  public boolean setComposingText(CharSequence text, int newCursorPosition) {
    composingText = text == null ? "" : text.toString();
    return baseConnection.setComposingText(text, newCursorPosition);