Class GestureDetector

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll

GestureDetectors analyses a stream of touch events and attempt to determine the intention of the user.
An view is attached to a gesture detector and if the detector recognises a pattern in its analysis, it will trigger a detected event to the application.
This is the base class for different gesture detectors available and provides functionality that is common to all the gesture detectors.

C#
Copy
public class GestureDetector : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
Inheritance
Derived
Implements

Constructors

View Source

GestureDetector()

Constructor. Creates an uninitialized GestureDetector.

Declaration
C#
Copy
public GestureDetector()
View Source

GestureDetector(GestureDetector)

The copy Constructor.

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

A reference to the copied handle

Methods

View Source

Attach(View)

Attaches an view to the gesture. The detected event will be triggered when the gesture occurs on the attached view.

Declaration
C#
Copy
public void Attach(View view)
Parameters
Type Name Description
View view

The view to attach to the gesture detector

View Source

Detach(View)

Detaches the attached view from the gesture detector.

Declaration
C#
Copy
public void Detach(View view)
Parameters
Type Name Description
View view

The view to detach from the gesture detector

View Source

DetachAll()

Detaches all the views that have been attached to the gesture detector.

Declaration
C#
Copy
public void DetachAll()
View Source

GetAttachedView(UInt32)

Returns an view by index. An empty handle if the index is not valid.

Declaration
C#
Copy
public View GetAttachedView(uint index)
Parameters
Type Name Description
UInt32 index

The attached view's index

Returns
Type Description
View

The attached view or an empty handle

View Source

GetAttachedViewCount()

Returns the number of views attached to the gesture detector.

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

The count

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

Implements

Extension Methods