Class LongPressGesture
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A long press gesture is emitted when the user holds the screen with the stated number of fingers.
A long press gesture finishes when all touches have been released.
C#Copypublic class LongPressGesture : Gesture, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic LongPressGesture(Gesture.StateType state)
Parameters
Type | Name | Description |
---|---|---|
Gesture.StateType | state | The state of the gesture |
API Level: 3
Properties
View Source
LocalPoint
This is the point, in local actor coordinates, where the long press occurred.
If a multi-touch long press, then this is the centroid of all the touch points.
Declaration
C#Copypublic Vector2 LocalPoint { get; }
Property Value
Type | Description |
---|---|
Vector2 |
API Level: 3
View Source
NumberOfTouches
The number of touch points in this long press gesture, i.e., the number of fingers the user had
on the screen to generate the long press gesture.
Declaration
C#Copypublic uint NumberOfTouches { get; }
Property Value
Type | Description |
---|---|
UInt32 |
API Level: 3
View Source
ScreenPoint
This is the point, in screen coordinates, where the long press occurred.
If a multi-touch long press, then this is the centroid of all the touch points.
Declaration
C#Copypublic Vector2 ScreenPoint { get; }
Property Value
Type | Description |
---|---|
Vector2 |
API Level: 3
Methods
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |