1# Input Method Framework Subsystem – Input Method Framework Service Changelog
2
3## cl.imf.1 Addition of Synchronous APIs for InputClient
4
5The synchronous APIs listed below are added.
6
7| API                                          | Description                    |
8| ---------------------------------------------- | ------------------------ |
9| getForwardSync(length:number): string          | Obtains the specific-length text before the cursor.|
10| getBackwardSync(length:number): string         | Obtains the specific-length text after the cursor.|
11| deleteForwardSync(length:number): void         | Deletes the fixed-length text before the cursor.|
12| deleteBackwardSync(length:number): void        | Deletes the fixed-length text after the cursor.|
13| insertTextSync(text: string): void             | Inserts text.                |
14| getEditorAttributeSync(): EditorAttribute      | Obtains the attribute of the edit box.        |
15| moveCursorSync(direction: number): void        | Moves the cursor.                |
16| selectByRangeSync(range: Range): void          | Selects text based on the specified range.    |
17| selectByMovementSync(movement: Movement): void | Selects text based on the cursor movement direction.|
18| getTextIndexAtCursorSync(): number             | Obtains the index of the text where the cursor is located.|
19
20**Change Impact**
21
22The preceding APIs are synchronous APIs.
23
24**Adaptation Guide**
25
26Follow the description in [@ohos.inputMethodEngine.d.ts](../../../application-dev/reference/apis/js-apis-inputmethodengine.md)
27