XRSPACE Developer Console

API - XRIMEJni

Contents

Event

  • public static event imsBackCursorCBFImpl ImsBackCursorCBF

Description Get cursor position from Android native, for correct the cursor position of the inputfield.


  • public static event imsStatusCBFImpl ImsStatusCBF

Description Get InputMethodService event.


  • public static event imsReturnEvidenceCBFImpl OnReturnEvidenceEvent

Description Return the text that send to library searching.(Only for Chinese)


  • public static event imsReturnSuggestionCBFImpl OnReturnSuggestion

Description Return the result of searching suggestion words.

Method

  • public static void imsCommitTextEvent(string text, int cursorPos)

Description Send to native, fill in text at the designated cursor position (cursorPos).


  • public static void imsDeleteText(int cursorPos, int textLen)

Description Send to native, delete textLen words from cursorPos.


  • public static void imsSendKeyEvent(int keyCode)

Description Send button event to native. This method is only support KEYCODE_ENTER now.

NOTE KEYCODE_ENTER Constant Value: 27 (0x0000001b)


  • public static void imsSetComposingRegionEvent(int start, int end)

Description Send to native, the range of text which is selected.


  • public static void imsSetComposingTextEvent(string text)

Description Send to native, replace the selected area with text.