Class EventHandlerHelper
Definition
- Assembly:
- Tizen.NUI.dll
EventHandlerHelper class provides a helper method to set and get event handlers using actions.
public static class EventHandlerHelper
- Inheritance
-
objectEventHandlerHelper
Methods
View SourceGet<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. |
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. |