- About XR
- XR Unity SDK
- XR SDK Release Notes
- Version:1.0.3
- Version:1.0.2
- Version:1.0.1
- Version:1.0.0
- Version:0.9.59
- Version:0.9.58
- Version:0.9.57
- Version:0.9.56
- Version:0.9.55
- Version:0.9.54
- Version:0.9.53
- Version:0.9.52
- Version:0.9.51
- Version:0.9.38
- Version:0.9.37
- Version:0.9.34
- Version:0.9.33
- Version:0.9.32
- Version:0.9.31
- Version:0.9.30
- Version:0.9.24
- Version:0.9.23 Beta
API - XRIMEJni¶
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.