C# Класс Grafiti.GestureEventManager

Manages the registration of gesture event handlers.
Показать файл Открыть проект

Открытые методы

Метод Описание
RegisterHandler ( Type grType, GRConfiguration grConf, string ev, GestureEventHandler handler ) : void

Registers a handler for a gesture event. The GR will be configured with the given configuration.

RegisterHandler ( Type grType, string ev, GestureEventHandler handler ) : void

Registers a handler for a gesture event. The GR will be will be configured by default.

SetPriorityNumber ( Type grType, GRConfiguration configuration, int priorityNumber ) : void

Sets the priority number to associate with the given gesture recognizer class and the given configuration. Note that once a priority number is set it can't be changed.

SetPriorityNumber ( Type grType, int priorityNumber ) : void

Sets the priority number to associate with the given gesture recognizer class and its default configuration. However note that when registering a gesture event handler with the same GR type, no configuration must be passed as parameter in order to associate it with the priority number specified. Note that once a priority number is set it can't be changed.

UnregisterAllHandlersOf ( IGestureListener listener ) : void

Unregisters all registered handlers for the given listener.

UnregisterHandler ( Type grType, GRConfiguration grConf, string ev, GestureEventHandler handler ) : void
UnregisterHandler ( Type grType, string ev, GestureEventHandler handler ) : void

Описание методов

RegisterHandler() публичный статический Метод

Registers a handler for a gesture event. The GR will be configured with the given configuration.
public static RegisterHandler ( Type grType, GRConfiguration grConf, string ev, GestureEventHandler handler ) : void
grType System.Type Type of the gesture recognizer.
grConf GRConfiguration The GR's configuration.
ev string
handler GestureEventHandler The listener's function that will be called when the event is raised.
Результат void

RegisterHandler() публичный статический Метод

Registers a handler for a gesture event. The GR will be will be configured by default.
public static RegisterHandler ( Type grType, string ev, GestureEventHandler handler ) : void
grType System.Type Type of the gesture recognizer.
ev string
handler GestureEventHandler The listener's function that will be called when the event is raised.
Результат void

SetPriorityNumber() публичный статический Метод

Sets the priority number to associate with the given gesture recognizer class and the given configuration. Note that once a priority number is set it can't be changed.
public static SetPriorityNumber ( Type grType, GRConfiguration configuration, int priorityNumber ) : void
grType System.Type Type of the gesture recognizer.
configuration GRConfiguration Configuration of the gesture recognizer.
priorityNumber int Priority number.
Результат void

SetPriorityNumber() публичный статический Метод

Sets the priority number to associate with the given gesture recognizer class and its default configuration. However note that when registering a gesture event handler with the same GR type, no configuration must be passed as parameter in order to associate it with the priority number specified. Note that once a priority number is set it can't be changed.
public static SetPriorityNumber ( Type grType, int priorityNumber ) : void
grType System.Type
priorityNumber int
Результат void

UnregisterAllHandlersOf() публичный статический Метод

Unregisters all registered handlers for the given listener.
public static UnregisterAllHandlersOf ( IGestureListener listener ) : void
listener IGestureListener The listener
Результат void

UnregisterHandler() публичный статический Метод

public static UnregisterHandler ( Type grType, GRConfiguration grConf, string ev, GestureEventHandler handler ) : void
grType System.Type
grConf GRConfiguration
ev string
handler GestureEventHandler
Результат void

UnregisterHandler() публичный статический Метод

public static UnregisterHandler ( Type grType, string ev, GestureEventHandler handler ) : void
grType System.Type
ev string
handler GestureEventHandler
Результат void