From ad982a11d17c625d5080e3e3608fc54d3f94bc68 Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Wed, 8 Jun 2022 08:58:16 +0000 Subject: [PATCH] update en/application-dev/reference/arkui-ts/ts-basic-gestures-longpressgesture.md. Signed-off-by: king_he <6384784@qq.com> --- .../arkui-ts/ts-basic-gestures-longpressgesture.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 7857f66342..fc5abc5ef2 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. | -- GitLab