diff --git a/en/application-dev/reference/arkui-ts/ts-basic-gestures-longpressgesture.md b/en/application-dev/reference/arkui-ts/ts-basic-gestures-longpressgesture.md index 7857f66342105d3ddbfb15cd6f4c5f33e32cd546..fc5abc5ef28d23265c97de88cfb25bd2502dca8f 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-gestures-longpressgesture.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-gestures-longpressgesture.md @@ -1,9 +1,10 @@ # LongPressGesture -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> This gesture is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. +The **<LongPressGesture>** component can be used to trigger a long press gesture. ## Required Permissions @@ -15,7 +16,7 @@ None LongPressGesture(options?: { fingers?: number, repeat?: boolean, duration?: number }) - Parameters - | Name | Type | Mandatory | Default Value | Description | + | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | | fingers | number | No | 1 | Minimum number of fingers to trigger a long press gesture. The value ranges from 1 to 10. | | repeat | boolean | No | false | Whether to continuously trigger the event callback. | @@ -31,7 +32,7 @@ LongPressGesture(options?: { fingers?: number, repeat?: boolean, duration?: numb | onActionCancel(event: () => void) | Callback invoked when a tap cancellation event is received after a long press gesture is recognized. | - GestureEvent attributes related to the long press gesture - | Name | Type | Description | + | Name | Type | Description | | -------- | -------- | -------- | | repeat | boolean | Whether the event is repeated. |