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#Copypublic class GestureDetector : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
- Derived
- Implements
Constructors
Declaration
C#Copypublic GestureDetector()
Declaration
C#Copypublic GestureDetector(GestureDetector handle)
Parameters
Type | Name | Description |
---|---|---|
GestureDetector | handle | A reference to the copied handle |
Methods
Attach(View)
Attaches an view to the gesture. The detected event will be triggered when the gesture occurs on the attached view.
Declaration
C#Copypublic void Attach(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The view to attach to the gesture detector |
Declaration
C#Copypublic void Detach(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The view to detach from the gesture detector |
Declaration
C#Copypublic void DetachAll()
GetAttachedView(UInt32)
Returns an view by index. An empty handle if the index is not valid.
Declaration
C#Copypublic 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 |
Declaration
C#Copypublic uint GetAttachedViewCount()
Returns
Type | Description |
---|---|
UInt32 | The count |
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |