public InputMethodHighlight (boolean selected, int state)

Constructs an input method highlight record. The variation is set to 0, the style to null.

Parameters:
selected    Whether the text range is selected
state    The conversion state for the text range - RAW_TEXT or CONVERTED_TEXT

Exceptions:
IllegalArgumentException    if a state other than RAW_TEXT or CONVERTED_TEXT is given

See also:
InputMethodHighlight.RAW_TEXT, InputMethodHighlight.CONVERTED_TEXT