Constructs an input method highlight record. The style attributes map provided must be unmodifiable.
selected | whether the text range is selected | |
state | the conversion state for the text range - RAW_TEXT or CONVERTED_TEXT | |
variation | the variation for the text range | |
style | the rendering style attributes for the text range, or null |
IllegalArgumentException | if a state other than RAW_TEXT or CONVERTED_TEXT is given |
InputMethodHighlight.RAW_TEXT, InputMethodHighlight.CONVERTED_TEXT
Diagram: Misc