Class TapGestureDetector
Definition
- 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.
public class TapGestureDetector : GestureDetector, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceTapGestureDetector()
Creates an initialized TapGestureDetector.
Declaration
public TapGestureDetector()
TapGestureDetector(uint)
Creates an initialized TapGestureDetector with the specified parameters.
Declaration
public TapGestureDetector(uint tapsRequired)
Parameters
Type | Name | Description |
---|---|---|
uint | tapsRequired | The minimum and maximum number of taps required |
TapGestureDetector(TapGestureDetector)
The copy constructor.
Declaration
public TapGestureDetector(TapGestureDetector handle)
Parameters
Type | Name | Description |
---|---|---|
TapGestureDetector | handle | A reference to the copied handle |
Methods
View SourceDispose(DisposeTypes)
override it to clean-up your own resources.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
View SourceGetMaximumTapsRequired()
Retrieves the maximum number of taps required.
Declaration
public uint GetMaximumTapsRequired()
Returns
Type | Description |
---|---|
uint | The maximum taps required |
GetMinimumTapsRequired()
Retrieves the minimum number of taps required.
Declaration
public uint GetMinimumTapsRequired()
Returns
Type | Description |
---|---|
uint | The minimum taps required |
ReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
View SourceSetMaximumTapsRequired(uint)
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
public void SetMaximumTapsRequired(uint maximumTaps)
Parameters
Type | Name | Description |
---|---|---|
uint | maximumTaps | The maximum taps required |
SetMinimumTapsRequired(uint)
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
public void SetMinimumTapsRequired(uint minimumTaps)
Parameters
Type | Name | Description |
---|---|---|
uint | minimumTaps | The minimum taps required |
Events
View SourceDetected
This signal is emitted when the specified tap is detected on the attached view.
Declaration
public event DaliEventHandler<object, TapGestureDetector.DetectedEventArgs> Detected
Event Type
Type | Description |
---|---|
DaliEventHandler<object, TapGestureDetector.DetectedEventArgs> |