API Reference 0.3.24dart_web_toolkit_eventTouchStartHandlerAdapter

TouchStartHandlerAdapter class

Handler interface for {@link TouchStartEvent} events.

class TouchStartHandlerAdapter extends EventHandlerAdapter implements TouchStartHandler {

 TouchStartHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

 /**
  * Called when TouchStartEvent is fired.
  *
  * @param event the {@link TouchStartEvent} that was fired
  */
 void onTouchStart(TouchStartEvent event) {
   callback(event);
 }

}

Extends

EventHandlerAdapter > TouchStartHandlerAdapter

Implements

TouchStartHandler

Constructors

new TouchStartHandlerAdapter(EventHandlerAdapterCallback callback) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
TouchStartHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onTouchStart(TouchStartEvent event) #

Called when TouchStartEvent is fired.

@param event the {@link TouchStartEvent} that was fired

void onTouchStart(TouchStartEvent event) {
 callback(event);
}