Class EventHandlerHelper

    Definition

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

    EventHandlerHelper class provides a helper method to set and get event handlers using actions.

    public static class EventHandlerHelper
    Inheritance
    object
    EventHandlerHelper

    Methods

    View Source

    Get<TEventHandler>(Action)

    Gets the event handler associated with the given action and removes the association.

    Declaration
    public static TEventHandler Get<TEventHandler>(Action action) where TEventHandler : Delegate
    Parameters
    Type Name Description
    Action action

    The action to get the event handler for.

    Returns
    Type Description
    TEventHandler

    The event handler associated with the given action, or null if no association exists.

    Type Parameters
    Name Description
    TEventHandler

    The type of the event handler.

    View Source

    Set<TEventHandler>(TEventHandler, Action)

    Sets the event handler for the given action.

    Declaration
    public static TEventHandler Set<TEventHandler>(TEventHandler handler, Action action) where TEventHandler : Delegate
    Parameters
    Type Name Description
    TEventHandler handler

    The event handler to set.

    Action action

    The action to associate with the event handler.

    Returns
    Type Description
    TEventHandler

    The event handler that was set.

    Type Parameters
    Name Description
    TEventHandler

    The type of the event handler.

    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX