LongPressGesture Class |
Namespace: FairyGUI
public class LongPressGesture : EventDispatcher
The LongPressGesture type exposes the following members.
Name | Description | |
---|---|---|
![]() | LongPressGesture | Initializes a new instance of the LongPressGesture class |
Name | Description | |
---|---|---|
![]() | host | |
![]() | onAction |
当手指按下后一段时间后派发该事件。并且在手指离开前按一定周期派发该事件。
|
![]() | onBegin |
当手指按下时派发该事件。
|
![]() | onEnd |
手指离开屏幕时派发该事件。
|
Name | Description | |
---|---|---|
![]() | AddEventListener(String, EventCallback0) | (Inherited from EventDispatcher.) |
![]() | AddEventListener(String, EventCallback1) | (Inherited from EventDispatcher.) |
![]() | BroadcastEvent | (Inherited from EventDispatcher.) |
![]() | BubbleEvent | (Inherited from EventDispatcher.) |
![]() | Cancel | |
![]() | DispatchEvent(String) | (Inherited from EventDispatcher.) |
![]() | DispatchEvent(EventContext) | (Inherited from EventDispatcher.) |
![]() | DispatchEvent(String, Object) | (Inherited from EventDispatcher.) |
![]() | DispatchEvent(String, Object, Object) | (Inherited from EventDispatcher.) |
![]() | Dispose | Releases all resources used by the LongPressGesture |
![]() | Enable | |
![]() | RemoveEventListener(String, EventCallback0) | (Inherited from EventDispatcher.) |
![]() | RemoveEventListener(String, EventCallback1) | (Inherited from EventDispatcher.) |
![]() | RemoveEventListeners() | (Inherited from EventDispatcher.) |
![]() | RemoveEventListeners(String) | (Inherited from EventDispatcher.) |
Name | Description | |
---|---|---|
![]() | holdRangeRadius |
手指按住后,移动超出此半径范围则手势停止。
|
![]() | interval |
派发onAction事件的时间间隔。单位秒。
|
![]() ![]() | INTERVAL | |
![]() | once |
如果为真,则onAction再一次按下释放过程只派发一次。如果为假,则每隔duration时间派发一次。
|
![]() | trigger |
第一次派发事件的触发时间。单位秒
|
![]() ![]() | TRIGGER |