Code example for ExtractedText

0
        boolean result = super.setComposingRegion(start, end);
        return result;
    } 
 
    private ExtractedTextRequest mUpdateRequest;
    private final ExtractedText mUpdateExtract = new ExtractedText();
    @Override 
    public ExtractedText getExtractedText(ExtractedTextRequest req, int flags) {
        if(DEBUG) Log.e(LOGTAG, "getExtractedText");
        if(!Exec.isInsertMode()) { 
            resetIME(); 
            return null; 
        } 
        if (req == null)
            return null; 
 
        final Editable content = getEditable();
        if (content == null)
            return null; 
 
        if ((flags & GET_EXTRACTED_TEXT_MONITOR) != 0)