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#
Copy
public class LongPressGestureDetector : GestureDetector, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
Inheritance
Implements

Constructors

View Source

LongPressGestureDetector()

Constructor.

Declaration
C#
Copy
public LongPressGestureDetector()
View Source

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#
Copy
public LongPressGestureDetector(uint touchesRequired)
Parameters
Type Name Description
UInt32 touchesRequired

The number of touches required.

View Source

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#
Copy
public 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.

View Source

LongPressGestureDetector(LongPressGestureDetector)

The copy constructor.

Declaration
C#
Copy
public LongPressGestureDetector(LongPressGestureDetector handle)
Parameters
Type Name Description
LongPressGestureDetector handle

A reference to the copied handle

Methods

View Source

Dispose(DisposeTypes)

override it to clean-up your own resources.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type
Overrides
View Source

GetMaximumTouchesRequired()

Retrieves the maximum number of touches required.

Declaration
C#
Copy
public uint GetMaximumTouchesRequired()
Returns
Type Description
UInt32

The maximum number of touches required.

View Source

GetMinimumTouchesRequired()

Retrieves the minimum number of touches required.

Declaration
C#
Copy
public uint GetMinimumTouchesRequired()
Returns
Type Description
UInt32

The minimum number of touches required.

View Source

ReleaseSwigCPtr(Runtime.InteropServices.HandleRef)

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type Name Description
Tizen.System.Runtime.InteropServices.HandleRef swigCPtr
Overrides
View Source

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#
Copy
public void SetTouchesRequired(uint touches)
Parameters
Type Name Description
UInt32 touches

Touches required

View Source

SetTouchesRequired(UInt32, UInt32)

Sets the minimum and maximum touches required.

Declaration
C#
Copy
public void SetTouchesRequired(uint minTouches, uint maxTouches)
Parameters
Type Name Description
UInt32 minTouches

Minimum touches required.

UInt32 maxTouches

Maximum touches required.

Events

View Source

Detected

This signal is emitted when the specified long press is detected on the attached view.

Declaration
C#
Copy
public event DaliEventHandler<object, LongPressGestureDetector.DetectedEventArgs> Detected
Event Type
Type Description
DaliEventHandler<Object, LongPressGestureDetector.DetectedEventArgs>

Implements

Extension Methods