@@ -57,7 +57,9 @@ Provides the constant values of function keys, edit boxes, and the cursor.
...
@@ -57,7 +57,9 @@ Provides the constant values of function keys, edit boxes, and the cursor.
getInputMethodAbility(): InputMethodAbility
getInputMethodAbility(): InputMethodAbility
Obtains an [InputMethodAbility](#inputmethodability) instance for the input method.
Obtains an [InputMethodAbility](#inputmethodability) instance for the input method.
This API can be called only by an input method.
This API can be called only by an input method.
The input method can use the obtained instance to subscribe to a soft keyboard display/hide request event, create/destroy an input method panel, and the like.
The input method can use the obtained instance to subscribe to a soft keyboard display/hide request event, create/destroy an input method panel, and the like.
| ctx | [BaseContext](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-inner-application-baseContext.md) | Yes | Context of the current input method.|
| ctx | [BaseContext](js-apis-inner-application-baseContext.md) | Yes | Context of the current input method.|
| info | [PanelInfo](#panelinfo10) | Yes | Information about the input method panel.|
| info | [PanelInfo](#panelinfo10) | Yes | Information about the input method panel.|
| callback | AsyncCallback\<[Panel](#panel10)> | Yes | Callback used to return the result. If the operation is successful, the created input method panel is returned. |
| callback | AsyncCallback\<[Panel](#panel10)> | Yes | Callback used to return the result. If the operation is successful, the created input method panel is returned. |
...
@@ -538,7 +540,7 @@ This API can be called only by an input method. Only one SOFT_KEYBOARD panel and
...
@@ -538,7 +540,7 @@ This API can be called only by an input method. Only one SOFT_KEYBOARD panel and
| ctx | [BaseContext](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-inner-application-baseContext.md) | Yes | Context of the current input method.|
| ctx | [BaseContext](js-apis-inner-application-baseContext.md) | Yes | Context of the current input method.|
| info | [PanelInfo](#panelinfo10) | Yes | Information about the input method panel.|
| info | [PanelInfo](#panelinfo10) | Yes | Information about the input method panel.|
**Return value**
**Return value**
...
@@ -953,7 +955,7 @@ Loads content from a page linked to LocalStorage to this panel. This API uses an
...
@@ -953,7 +955,7 @@ Loads content from a page linked to LocalStorage to this panel. This API uses an
| path | string | Yes | Path of the page from which the content will be loaded.|
| path | string | Yes | Path of the page from which the content will be loaded.|
| storage | [LocalStorage](../../quick-start/arkts-localstorage.md) | Yes | Storage unit that provides storage for mutable and immutable state variables in the application.|
| storage | [LocalStorage](../arkui-ts/ts-state-management.md#localstorage9) | Yes | Storage unit that provides storage for mutable and immutable state variables in the application.|
| callback | AsyncCallback\<void> | Yes | Callback used to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error object.|
| callback | AsyncCallback\<void> | Yes | Callback used to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error object.|
**Example**
**Example**
...
@@ -987,7 +989,7 @@ Loads content from a page linked to LocalStorage to this panel. This API uses a
...
@@ -987,7 +989,7 @@ Loads content from a page linked to LocalStorage to this panel. This API uses a
| path | string | Yes | Path of the page from which the content will be loaded.|
| path | string | Yes | Path of the page from which the content will be loaded.|
| storage | [LocalStorage](../../quick-start/arkts-localstorage.md) | Yes | Storage unit that provides storage for mutable and immutable state variables in the application.|
| storage | [LocalStorage](../arkui-ts/ts-state-management.md#localstorage9) | Yes | Storage unit that provides storage for mutable and immutable state variables in the application.|
**Return value**
**Return value**
...
@@ -1067,7 +1069,7 @@ The panel width cannot exceed the screen width, and the panel height cannot be h
...
@@ -1067,7 +1069,7 @@ The panel width cannot exceed the screen width, and the panel height cannot be h
| Type | Description |
| Type | Description |
| ------- | ------------------------------ |
| ------- | ------------------------------ |
| Promise<void> | Promise that returns no value. |
| Promise\<void> | Promise that returns no value. |
**Example**
**Example**
...
@@ -1139,7 +1141,7 @@ This API does not work on panels in the FLG_FIXED state.
...
@@ -1139,7 +1141,7 @@ This API does not work on panels in the FLG_FIXED state.
| Type | Description |
| Type | Description |
| ------- | ------------------------------ |
| ------- | ------------------------------ |
| Promise<void> | Promise that returns no value. |
| Promise\<void> | Promise that returns no value. |
**Example**
**Example**
...
@@ -1558,7 +1560,7 @@ Sends the function key. This API uses a promise to return the result.
...
@@ -1558,7 +1560,7 @@ Sends the function key. This API uses a promise to return the result.
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| action | number | Yes| Action of the function key.<br>**0**: invalid key.<br>**1**: confirm key (Enter key).|
| action | number | Yes| Action of the function key.<br>- **0**: invalid key.<br>- **1**: confirm key (Enter key).|
**Return value**
**Return value**
...
@@ -2521,8 +2523,8 @@ Describes the attribute of a key.
...
@@ -2521,8 +2523,8 @@ Describes the attribute of a key.