diff --git a/api/@ohos.inputmethod.d.ts b/api/@ohos.inputmethod.d.ts index 2ec69c2eeb4b37a92c26744b2e753eb227fa02a3..fb1d97ce7d50fad4645d10c162eb39d3cf6da050 100644 --- a/api/@ohos.inputmethod.d.ts +++ b/api/@ohos.inputmethod.d.ts @@ -18,16 +18,30 @@ import {AsyncCallback} from './basic'; /** * inputmethod * - * @since 6 * @syscap SystemCapability.MiscServices.InputMethodFramework */ declare namespace inputMethod { + /** + * keyboard max number + * @since 8 + */ const MAX_TYPE_NUM: number + /** + * input method setting + * @since 8 + */ function getInputMethodSetting(): InputMethodSetting; + /** + * input method controller + * @since 6 + */ function getInputMethodController(): InputMethodController; + /** + * @since 8 + */ interface InputMethodSetting { listInputMethod(callback: AsyncCallback>): void; @@ -38,12 +52,19 @@ declare namespace inputMethod { displayOptionalInputMethod(): Promise; } + /** + * @since 6 + */ interface InputMethodController { stopInput(callback: AsyncCallback): void; stopInput(): Promise; } + /** + * input method info + * @since 8 + */ interface InputMethodProperty { readonly packageName: string; readonly methodId: string;