Code example for InputConnection

Methods: sendKeyEvent

0
    return baseConnection.reportFullscreenMode(enabled);
  } 
 
  @Override 
  public boolean sendKeyEvent(KeyEvent event) {
    return baseConnection.sendKeyEvent(event);
  } 
 
  @TargetApi(9) 
  @Override 
  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);
  } 
 
  @Override 
  public boolean setComposingText(CharSequence text, int newCursorPosition) {
    composingText = text == null ? "" : text.toString();
    return baseConnection.setComposingText(text, newCursorPosition);
  }