Class LongPressGestureDetector
Definition
- 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.
public class LongPressGestureDetector : GestureDetector, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceLongPressGestureDetector()
Constructor.
Declaration
public LongPressGestureDetector()
LongPressGestureDetector(uint, uint)
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
public LongPressGestureDetector(uint minTouches, uint maxTouches)
Parameters
Type | Name | Description |
---|---|---|
uint | minTouches | The minimum number of touches required. |
uint | maxTouches | The maximum number of touches required. |
LongPressGestureDetector(uint)
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
public LongPressGestureDetector(uint touchesRequired)
Parameters
Type | Name | Description |
---|---|---|
uint | touchesRequired | The number of touches required. |
LongPressGestureDetector(LongPressGestureDetector)
The copy constructor.
Declaration
public LongPressGestureDetector(LongPressGestureDetector handle)
Parameters
Type | Name | Description |
---|---|---|
LongPressGestureDetector | handle | A reference to the copied handle |
Methods
View SourceDispose(DisposeTypes)
override it to clean-up your own resources.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
View SourceGetMaximumTouchesRequired()
Retrieves the maximum number of touches required.
Declaration
public uint GetMaximumTouchesRequired()
Returns
Type | Description |
---|---|
uint | The maximum number of touches required. |
GetMinimumTouchesRequired()
Retrieves the minimum number of touches required.
Declaration
public uint GetMinimumTouchesRequired()
Returns
Type | Description |
---|---|
uint | The minimum number of touches required. |
ReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
View SourceSetTouchesRequired(uint, uint)
Sets the minimum and maximum touches required.
Declaration
public void SetTouchesRequired(uint minTouches, uint maxTouches)
Parameters
Type | Name | Description |
---|---|---|
uint | minTouches | Minimum touches required. |
uint | maxTouches | Maximum touches required. |
SetTouchesRequired(uint)
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
public void SetTouchesRequired(uint touches)
Parameters
Type | Name | Description |
---|---|---|
uint | touches | Touches required |
Events
View SourceDetected
This signal is emitted when the specified long press is detected on the attached view.
Declaration
public event DaliEventHandler<object, LongPressGestureDetector.DetectedEventArgs> Detected
Event Type
Type | Description |
---|---|
DaliEventHandler<object, LongPressGestureDetector.DetectedEventArgs> |