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.

    public class GestureDetector : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    GestureDetector
    Derived
    LongPressGestureDetector
    LongPressGestureDetector
    LongPressGestureDetector
    LongPressGestureDetector
    PanGestureDetector
    PanGestureDetector
    PanGestureDetector
    PanGestureDetector
    PinchGestureDetector
    PinchGestureDetector
    PinchGestureDetector
    PinchGestureDetector
    RotationGestureDetector
    RotationGestureDetector
    RotationGestureDetector
    RotationGestureDetector
    TapGestureDetector
    TapGestureDetector
    TapGestureDetector
    TapGestureDetector
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Constructors

    View Source

    GestureDetector()

    Constructor. Creates an uninitialized GestureDetector.

    Declaration
    public GestureDetector()
    View Source

    GestureDetector(GestureDetector)

    The copy Constructor.

    Declaration
    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
    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
    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
    public void DetachAll()
    View Source

    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

    View Source

    GetAttachedViewCount()

    Returns the number of views attached to the gesture detector.

    Declaration
    public uint GetAttachedViewCount()
    Returns
    Type Description
    uint

    The count

    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    BaseHandle.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX