mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
commit
363a055347
57
api/@ohos.inputMethodEngine.d.ts
vendored
57
api/@ohos.inputMethodEngine.d.ts
vendored
@ -1301,6 +1301,54 @@ declare namespace inputMethodEngine {
|
||||
* @since 12
|
||||
*/
|
||||
getCallingWindowInfo(): Promise<WindowInfo>;
|
||||
|
||||
/**
|
||||
* Insert the provided text as preview text.
|
||||
*
|
||||
* @param { string } text - the text to be previewed.
|
||||
* @param { Range } range - the range of the text to be replaced by the preview text.
|
||||
* @returns { Promise<void> } the promise returned by the function.
|
||||
* @throws { BusinessError } 401 - parameter error.
|
||||
* @throws { BusinessError } 12800003 - input method client error.
|
||||
* @throws { BusinessError } 12800011 - text preview is not supported.
|
||||
* @syscap SystemCapability.MiscServices.InputMethodFramework
|
||||
* @since 12
|
||||
*/
|
||||
setPreviewText(text: string, range: Range): Promise<void>;
|
||||
|
||||
/**
|
||||
* Insert the provided text as preview text.
|
||||
*
|
||||
* @param { string } text - the text to be previewed.
|
||||
* @param { Range } range - the range of the text to be replaced by the preview text.
|
||||
* @throws { BusinessError } 401 - parameter error.
|
||||
* @throws { BusinessError } 12800003 - input method client error.
|
||||
* @throws { BusinessError } 12800011 - text preview is not supported.
|
||||
* @syscap SystemCapability.MiscServices.InputMethodFramework
|
||||
* @since 12
|
||||
*/
|
||||
setPreviewTextSync(text: string, range: Range): void;
|
||||
|
||||
/**
|
||||
* Finish the text preview.
|
||||
*
|
||||
* @returns { Promise<void> } the promise returned by the function.
|
||||
* @throws { BusinessError } 12800003 - input method client error.
|
||||
* @throws { BusinessError } 12800011 - text preview is not supported.
|
||||
* @syscap SystemCapability.MiscServices.InputMethodFramework
|
||||
* @since 12
|
||||
*/
|
||||
finishTextPreview(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Finish the text preview.
|
||||
*
|
||||
* @throws { BusinessError } 12800003 - input method client error.
|
||||
* @throws { BusinessError } 12800011 - text preview is not supported.
|
||||
* @syscap SystemCapability.MiscServices.InputMethodFramework
|
||||
* @since 12
|
||||
*/
|
||||
finishTextPreviewSync(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1674,6 +1722,15 @@ declare namespace inputMethodEngine {
|
||||
* @since 8
|
||||
*/
|
||||
readonly enterKeyType: number;
|
||||
|
||||
/**
|
||||
* Indicates whether the editor supports the text preview.
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MiscServices.InputMethodFramework
|
||||
* @since 12
|
||||
*/
|
||||
isTextPreviewSupported: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -657,6 +657,7 @@ preresolve
|
||||
presentationml
|
||||
presently
|
||||
presistent
|
||||
previewed
|
||||
prevgroup
|
||||
prikey
|
||||
primaries
|
||||
|
Loading…
Reference in New Issue
Block a user