diff --git a/api/@ohos.inputmethod.d.ts b/api/@ohos.inputmethod.d.ts index 7a47e7b3c78875c1cddc6f816403de0c477d8554..0dbd6256dc16364303a7c284f7a57a8e45c7864e 100644 --- a/api/@ohos.inputmethod.d.ts +++ b/api/@ohos.inputmethod.d.ts @@ -59,43 +59,10 @@ declare namespace inputMethod { */ function switchInputMethod(target: InputMethodProperty): Promise; - /** - * Get current input method - * @since 9 - * @return The InputMethodProperty object of the current input method - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @StageModelOnly - */ - function getCurrentInputMethod(): InputMethodProperty; - /** * @since 8 */ interface InputMethodSetting { - /** - * List input methods - * @since 9 - * @param enable : - * if true, collect enabled input methods. - * if false, collect disabled input methods. - * @return - - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @StageModelOnly - */ - listInputMethod(enable: boolean, callback: AsyncCallback>): void; - - /** - * List input methods - * @since 9 - * @param enable : - * if true, collect enabled input methods. - * if false, collect disabled input methods. - * @return - - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @StageModelOnly - */ - listInputMethod(enable: boolean): Promise>; - /** * @since 8 */ diff --git a/api/@ohos.inputmethodengine.d.ts b/api/@ohos.inputmethodengine.d.ts index 51f2366f931b501d6349d5f4cc04a4f883efb97f..82e19e796c967b3321e0de9287849d0795fbf8d4 100644 --- a/api/@ohos.inputmethodengine.d.ts +++ b/api/@ohos.inputmethodengine.d.ts @@ -58,13 +58,6 @@ declare namespace inputMethodEngine { const OPTION_MULTI_LINE: number; const OPTION_NO_FULLSCREEN: number; - /** - * The window styles for inputmethod ability. - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - */ - const WINDOW_TYPE_INPUT_METHOD_FLOAT: number; - function getInputMethodEngine(): InputMethodEngine; function createKeyboardDelegate(): KeyboardDelegate; @@ -113,28 +106,6 @@ declare namespace inputMethodEngine { getEditorAttribute(callback: AsyncCallback): void; getEditorAttribute(): Promise; - - /** - * Move curosr from input method. - * - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @param direction Indicates the distance of cursor to be moved. - * @return - - * @StageModelOnly - */ - moveCursor(direction: number, callback: AsyncCallback): void; - - /** - * Move curosr from input method. - * - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @param direction Indicates the distance of cursor to be moved. - * @return - - * @StageModelOnly - */ - moveCursor(direction: number): Promise; } interface KeyboardDelegate { @@ -164,83 +135,6 @@ declare namespace inputMethodEngine { readonly keyCode: number; readonly keyAction: number; } - - /** - * The extension context class of input method. - * - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @StageModelOnly - */ - class InputMethodExtensionContext extends ExtensionContext { - - /** - * Input method extension uses this method to start a specific ability. - * - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @param want Indicates the ability to start. - * @param options Indicates the start options. - * @return - - * @StageModelOnly - */ - startAbility(want: Want, callback: AsyncCallback): void; - startAbility(want: Want, options: StartOptions, callback: AsyncCallback): void; - startAbility(want: Want, options?: StartOptions): Promise; - - /** - * Destroy the input method extension. - * - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @return - - * @StageModelOnly - */ - terminateSelf(callback: AsyncCallback): void; - terminateSelf(): Promise; - - } - - /** - * The extension ability class of input method. - * - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @StageModelOnly - */ - class InputMethodExtensionAbility { - - /** - * Indicates input method extension ability context. - * - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @StageModelOnly - */ - context: InputMethodExtensionContext; - - /** - * Called back when a input method extension is started for initialization. - * - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @param want Indicates the want of created service extension. - * @return - - * @StageModelOnly - */ - onCreate(want: Want): void; - - /** - * Called back before a input method extension is destroyed. - * - * @since 9 - * @syscap SystemCapability.MiscServices.InputMethodFramework - * @return - - * @StageModelOnly - */ - onDestroy(): void; - - } } export default inputMethodEngine;