RCTTouchEvent.h 842 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <Foundation/Foundation.h>
  8. #import <React/RCTEventDispatcher.h>
  9. /**
  10. * Represents a touch event, which may be composed of several touches (one for every finger).
  11. * For more information on contents of passed data structures see RCTTouchHandler.
  12. */
  13. @interface RCTTouchEvent : NSObject <RCTEvent>
  14. - (instancetype)initWithEventName:(NSString *)eventName
  15. reactTag:(NSNumber *)reactTag
  16. reactTouches:(NSArray<NSDictionary *> *)reactTouches
  17. changedIndexes:(NSArray<NSNumber *> *)changedIndexes
  18. coalescingKey:(uint16_t)coalescingKey NS_DESIGNATED_INITIALIZER;
  19. @end