Class GestureDetector
Definition
- 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.
public class GestureDetector : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Derived
- Implements
-
System.IDisposable
Constructors
View SourceGestureDetector()
Constructor. Creates an uninitialized GestureDetector.
Declaration
public GestureDetector()
GestureDetector(GestureDetector)
The copy Constructor.
Declaration
public GestureDetector(GestureDetector handle)
Parameters
Type | Name | Description |
---|---|---|
GestureDetector | handle | A reference to the copied handle |
Methods
View SourceAttach(View)
Attaches an view to the gesture. The detected event will be triggered when the gesture occurs on the attached view.
Declaration
public void Attach(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The view to attach to the gesture detector |
Detach(View)
Detaches the attached view from the gesture detector.
Declaration
public void Detach(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The view to detach from the gesture detector |
DetachAll()
Detaches all the views that have been attached to the gesture detector.
Declaration
public void DetachAll()
GetAttachedView(uint)
Returns an view by index. An empty handle if the index is not valid.
Declaration
public View GetAttachedView(uint index)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The attached view's index |
Returns
Type | Description |
---|---|
View | The attached view or an empty handle |
GetAttachedViewCount()
Returns the number of views attached to the gesture detector.
Declaration
public uint GetAttachedViewCount()
Returns
Type | Description |
---|---|
uint | The count |
ReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |