TouchableView.h 754 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <UIKit/UIKit.h>
  10. #import "TouchSpotView.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @protocol TouchableViewDelegate <NSObject>
  13. - (void)shouldHandleTouchesNumber:(int)touchesCount;
  14. - (void)shouldHandleTapsNumber:(int)numberOfTaps;
  15. @end
  16. @interface TouchableView : UIView
  17. @property (nonatomic) NSMutableDictionary<NSNumber*, TouchSpotView*> *touchViews;
  18. @property (nonatomic) int numberOFTaps;
  19. @property (nonatomic) id delegate;
  20. @end
  21. NS_ASSUME_NONNULL_END