2014 snapchat source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
821 B

  1. //
  2. // SCFeature.h
  3. // SCCamera
  4. //
  5. // Created by Kristian Bauer on 1/4/18.
  6. //
  7. #import <UIKit/UIKit.h>
  8. /**
  9. * Top level protocol for UI features
  10. */
  11. #define SCLogCameraFeatureInfo(fmt, ...) SCLogCoreCameraInfo(@"[SCFeature] " fmt, ##__VA_ARGS__)
  12. @protocol SCFeatureContainerView;
  13. @protocol SCFeature <NSObject>
  14. @optional
  15. - (void)configureWithView:(UIView<SCFeatureContainerView> *)view;
  16. - (void)forwardCameraTimerGesture:(UIGestureRecognizer *)gestureRecognizer;
  17. - (void)forwardCameraOverlayTapGesture:(UIGestureRecognizer *)gestureRecognizer;
  18. - (void)forwardLongPressGesture:(UIGestureRecognizer *)gestureRecognizer;
  19. - (void)forwardPinchGesture:(UIPinchGestureRecognizer *)gestureRecognizer;
  20. - (void)forwardPanGesture:(UIPanGestureRecognizer *)gestureRecognizer;
  21. - (BOOL)shouldBlockTouchAtPoint:(CGPoint)point;
  22. @end