Class LongPressGestureDetector

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    This class emits a signals when a long press gesture occurs that meets the requirements set by the application.
    For any valid long press, two signals will be emitted:

    • First identifying the beginning (state = Started) i.e. when fingers held down for the required time.
    • Second identifying the ending (state = Finished) i.e. when fingers are released.
    public class LongPressGestureDetector : GestureDetector, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    GestureDetector
    LongPressGestureDetector
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Constructors

    View Source

    LongPressGestureDetector()

    Constructor.

    Declaration
    public LongPressGestureDetector()
    View Source

    LongPressGestureDetector(uint, uint)

    Creates an initialized LongPressGestureDetector with the minimum and maximum number of touches required.
    A long press gesture will be emitted from this detector if the number of fingers touching the screen falls between the minimum and maximum touches set.

    Declaration
    public LongPressGestureDetector(uint minTouches, uint maxTouches)
    Parameters
    Type Name Description
    uint minTouches

    The minimum number of touches required.

    uint maxTouches

    The maximum number of touches required.

    View Source

    LongPressGestureDetector(uint)

    Creates an initialized LongPressGestureDetector with the number of touches required.
    A long press gesture will be emitted from this detector if the number of fingers touching the screen is equal to the touches required.

    Declaration
    public LongPressGestureDetector(uint touchesRequired)
    Parameters
    Type Name Description
    uint touchesRequired

    The number of touches required.

    View Source

    LongPressGestureDetector(LongPressGestureDetector)

    The copy constructor.

    Declaration
    public LongPressGestureDetector(LongPressGestureDetector handle)
    Parameters
    Type Name Description
    LongPressGestureDetector handle

    A reference to the copied handle

    Methods

    View Source

    Dispose(DisposeTypes)

    override it to clean-up your own resources.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type
    Overrides
    BaseHandle.Dispose(DisposeTypes)
    View Source

    GetMaximumTouchesRequired()

    Retrieves the maximum number of touches required.

    Declaration
    public uint GetMaximumTouchesRequired()
    Returns
    Type Description
    uint

    The maximum number of touches required.

    View Source

    GetMinimumTouchesRequired()

    Retrieves the minimum number of touches required.

    Declaration
    public uint GetMinimumTouchesRequired()
    Returns
    Type Description
    uint

    The minimum number of touches required.

    View Source

    ReleaseSwigCPtr(HandleRef)

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

    SetTouchesRequired(uint, uint)

    Sets the minimum and maximum touches required.

    Declaration
    public void SetTouchesRequired(uint minTouches, uint maxTouches)
    Parameters
    Type Name Description
    uint minTouches

    Minimum touches required.

    uint maxTouches

    Maximum touches required.

    View Source

    SetTouchesRequired(uint)

    Sets the number of touches required.
    The number of touches corresponds to the number of fingers a user has on the screen. The default is 1.

    Declaration
    public void SetTouchesRequired(uint touches)
    Parameters
    Type Name Description
    uint touches

    Touches required

    Events

    View Source

    Detected

    This signal is emitted when the specified long press is detected on the attached view.

    Declaration
    public event DaliEventHandler<object, LongPressGestureDetector.DetectedEventArgs> Detected
    Event Type
    Type Description
    DaliEventHandler<object, LongPressGestureDetector.DetectedEventArgs>

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    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