mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-02-17 07:29:22 +00:00
fix:add sync method
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
923aafb2a6
commit
e049a31a0f
36
api/@ohos.inputMethodEngine.d.ts
vendored
36
api/@ohos.inputMethodEngine.d.ts
vendored
@ -580,6 +580,20 @@ declare namespace inputMethodEngine {
|
||||
*/
|
||||
createPanel(ctx: BaseContext, info: PanelInfo): Promise<Panel>;
|
||||
|
||||
/**
|
||||
* Creates a panel.
|
||||
* <p>The system only allows one soft keyboard and one status bar to be created.</p>
|
||||
*
|
||||
* @param { BaseContext } ctx - indicates the context on which the window depends.
|
||||
* @param { PanelInfo } info - the info of panel to be created.
|
||||
* @returns { Panel } the created panel.
|
||||
* @throws { BusinessError } 401 - parameter error.
|
||||
* @throws { BusinessError } 12800004 - not an input method extension.
|
||||
* @syscap SystemCapability.MiscServices.InputMethodFramework
|
||||
* @since 10
|
||||
*/
|
||||
createPanelSync(ctx: BaseContext, info: PanelInfo): Panel;
|
||||
|
||||
/**
|
||||
* Destroys a panel.
|
||||
*
|
||||
@ -1063,6 +1077,17 @@ declare namespace inputMethodEngine {
|
||||
*/
|
||||
selectByRange(range: Range): Promise<void>;
|
||||
|
||||
/**
|
||||
* Select text in editor by range.
|
||||
*
|
||||
* @param { Range } range - indicates the range of selected text in editor.
|
||||
* @throws { BusinessError } 401 - parameter error.
|
||||
* @throws { BusinessError } 12800003 - input method client error.
|
||||
* @syscap SystemCapability.MiscServices.InputMethodFramework
|
||||
* @since 10
|
||||
*/
|
||||
selectByRangeSync(range: Range): void;
|
||||
|
||||
/**
|
||||
* Select text in editor by cursor movement.
|
||||
*
|
||||
@ -1087,6 +1112,17 @@ declare namespace inputMethodEngine {
|
||||
*/
|
||||
selectByMovement(movement: Movement): Promise<void>;
|
||||
|
||||
/**
|
||||
* Select text in editor by cursor movement.
|
||||
*
|
||||
* @param { Movement } movement - indicates the movement of cursor when selecting.
|
||||
* @throws { BusinessError } 401 - parameter error.
|
||||
* @throws { BusinessError } 12800003 - input method client error.
|
||||
* @syscap SystemCapability.MiscServices.InputMethodFramework
|
||||
* @since 10
|
||||
*/
|
||||
selectByMovementSyncz(movement: Movement): void;
|
||||
|
||||
/**
|
||||
* Get the index number of text at cursor.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user