Code example for InputConnection

Methods: setComposingText

0
    } 
    super.onConfigurationChanged(newConfig);
  } 
 
  @Override 
  public void onUpdateSelection(int oldSelStart, int oldSelEnd, int newSelStart,
      int newSelEnd, int candidatesStart, int candidatesEnd) {
    super.onUpdateSelection(oldSelStart, oldSelEnd, newSelStart, newSelEnd, 
        candidatesStart, candidatesEnd);
    if ((candidatesEnd != -1) &&
        ((newSelStart != candidatesEnd) || (newSelEnd != candidatesEnd))) {
      // Clear composing text and its candidates for cursor movement. 
      escape(); 
    } 
    // Update the caps-lock status for the current cursor position. 
    updateCursorCapsToInputView(); 
  } 
 
  @Override 
  public void onComputeInsets(InputMethodService.Insets outInsets) {
    super.onComputeInsets(outInsets);