Class LongPressGestureDetector
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
This class emits a signals when a long press gesture occurs that meets the requirements set by the application.
For any valid long press, two signals will be emitted:
- First identifying the beginning (state = Started) i.e. when fingers held down for the required time.
- Second identifying the ending (state = Finished) i.e. when fingers are released.
C#Copypublic class LongPressGestureDetector : GestureDetector, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic LongPressGestureDetector()
LongPressGestureDetector(UInt32)
Creates an initialized LongPressGestureDetector with the number of touches required.
A long press gesture will be emitted from this detector if the number of fingers touching the screen is equal to the touches required.
Declaration
C#Copypublic LongPressGestureDetector(uint touchesRequired)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | touchesRequired | The number of touches required. |
LongPressGestureDetector(UInt32, UInt32)
Creates an initialized LongPressGestureDetector with the minimum and maximum number of touches required.
A long press gesture will be emitted from this detector if the number of fingers touching the screen falls between the minimum and maximum touches set.
Declaration
C#Copypublic LongPressGestureDetector(uint minTouches, uint maxTouches)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | minTouches | The minimum number of touches required. |
UInt32 | maxTouches | The maximum number of touches required. |
Declaration
C#Copypublic LongPressGestureDetector(LongPressGestureDetector handle)
Parameters
Type | Name | Description |
---|---|---|
LongPressGestureDetector | handle | A reference to the copied handle |
Methods
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
Declaration
C#Copypublic uint GetMaximumTouchesRequired()
Returns
Type | Description |
---|---|
UInt32 | The maximum number of touches required. |
Declaration
C#Copypublic uint GetMinimumTouchesRequired()
Returns
Type | Description |
---|---|
UInt32 | The minimum number of touches required. |
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
SetTouchesRequired(UInt32)
Sets the number of touches required.
The number of touches corresponds to the number of fingers a user has on the screen. The default is 1.
Declaration
C#Copypublic void SetTouchesRequired(uint touches)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | touches | Touches required |
Declaration
C#Copypublic void SetTouchesRequired(uint minTouches, uint maxTouches)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | minTouches | Minimum touches required. |
UInt32 | maxTouches | Maximum touches required. |
Events
Detected
This signal is emitted when the specified long press is detected on the attached view.
Declaration
C#Copypublic event DaliEventHandler<object, LongPressGestureDetector.DetectedEventArgs> Detected
Event Type
Type | Description |
---|---|
DaliEventHandler<Object, LongPressGestureDetector.DetectedEventArgs> |