openharmony 鸿蒙 changelogs-imf

2023-10-30 浏览 (234)

Input Method Framework Subsystem – Input Method Framework Service Changelog

cl.imf.1 Addition of Synchronous APIs for InputClient

The synchronous APIs listed below are added.

APIDescription
getForwardSync(length:number): stringObtains the specific-length text before the cursor.
getBackwardSync(length:number): stringObtains the specific-length text after the cursor.
deleteForwardSync(length:number): voidDeletes the fixed-length text before the cursor.
deleteBackwardSync(length:number): voidDeletes the fixed-length text after the cursor.
insertTextSync(text: string): voidInserts text.
getEditorAttributeSync(): EditorAttributeObtains the attribute of the edit box.
moveCursorSync(direction: number): voidMoves the cursor.
selectByRangeSync(range: Range): voidSelects text based on the specified range.
selectByMovementSync(movement: Movement): voidSelects text based on the cursor movement direction.
getTextIndexAtCursorSync(): numberObtains the index of the text where the cursor is located.

Change Impact

The preceding APIs are synchronous APIs.

Adaptation Guide

Follow the description in @ohos.inputMethodEngine.d.ts

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙Application Access Control Subsystem Changelog

harmony 鸿蒙Account Subsystem Changelog

harmony 鸿蒙Bluetooth Subsystem Changelog

harmony 鸿蒙Bundle Management Subsystem Changelog

harmony 鸿蒙Security Subsystem Changelog

harmony 鸿蒙Graphics Subsystem Changelog

harmony 鸿蒙Telephony Subsystem Changelog

harmony 鸿蒙Wi-Fi Subsystem Changelog

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/f8c33dabd49e4d28a71448bc8fa25dd5