updateEvent method

void updateEvent(
  1. EventHolder holder
)

Implementation

void updateEvent(EventHolder holder) {
  switch (holder.eventName) {
    case NativeGestureHandle.kClick:
      setGestureType(GestureType.click, holder.isAdd);
      break;
    case NativeGestureHandle.kLongClick:
      setGestureType(GestureType.longClick, holder.isAdd);
      break;
    case NativeGestureHandle.kTouchDown:
      setGestureType(GestureType.touchDown, holder.isAdd);
      break;
    case NativeGestureHandle.kTouchMove:
      setGestureType(GestureType.touchMove, holder.isAdd);
      break;
    case NativeGestureHandle.kTouchEnd:
      setGestureType(GestureType.touchEnd, holder.isAdd);
      break;
    case NativeGestureHandle.kTouchCancel:
      setGestureType(GestureType.touchCancel, holder.isAdd);
      break;
    case NativeGestureHandle.kPressIn:
      setGestureType(GestureType.pressIn, holder.isAdd);
      break;
    case NativeGestureHandle.kPressOut:
      setGestureType(GestureType.pressOut, holder.isAdd);
      break;
  }
  markDirty();
}