Class TapGestureDetector
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
This class emits a signal when a tap gesture occurs that meets the requirements set by the application.
A TapGesture is a discrete gesture, which means it does not have any state information attached.
C#Copypublic class TapGestureDetector : GestureDetector, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic TapGestureDetector()
TapGestureDetector(UInt32)
Creates an initialized TapGestureDetector with the specified parameters.
Declaration
C#Copypublic TapGestureDetector(uint tapsRequired)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | tapsRequired | The minimum and maximum number of taps required |
Declaration
C#Copypublic TapGestureDetector(TapGestureDetector handle)
Parameters
Type | Name | Description |
---|---|---|
TapGestureDetector | handle | A reference to the copied handle |
Methods
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
Declaration
C#Copypublic uint GetMaximumTapsRequired()
Returns
Type | Description |
---|---|
UInt32 | The maximum taps required |
Declaration
C#Copypublic uint GetMinimumTapsRequired()
Returns
Type | Description |
---|---|
UInt32 | The minimum taps required |
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
SetMaximumTapsRequired(UInt32)
Sets the maximum number of taps required. The tap count is the number of times a user should "tap" the screen.
The default is 1.
Declaration
C#Copypublic void SetMaximumTapsRequired(uint maximumTaps)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | maximumTaps | The maximum taps required |
SetMinimumTapsRequired(UInt32)
Sets the minimum number of taps required. The tap count is the number of times a user should "tap" the screen.
The default is 1.
Declaration
C#Copypublic void SetMinimumTapsRequired(uint minimumTaps)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | minimumTaps | The minimum taps required |
Events
Detected
This signal is emitted when the specified tap is detected on the attached view.
Declaration
C#Copypublic event DaliEventHandler<object, TapGestureDetector.DetectedEventArgs> Detected
Event Type
Type | Description |
---|---|
DaliEventHandler<Object, TapGestureDetector.DetectedEventArgs> |