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.

33 lines
771 B

  1. //
  2. // SCFeatureLensSideButton.h
  3. // SCCamera
  4. //
  5. // Created by Anton Udovychenko on 4/12/18.
  6. //
  7. #import "AVCameraViewEnums.h"
  8. #import "SCFeature.h"
  9. #import <Foundation/Foundation.h>
  10. @protocol SCFeatureLensSideButton;
  11. @class SCGrowingButton, SCLens;
  12. NS_ASSUME_NONNULL_BEGIN
  13. @protocol SCFeatureLensSideButtonDelegate <NSObject>
  14. - (void)featureLensSideButton:(id<SCFeatureLensSideButton>)featureLensSideButton
  15. didPressLensButton:(SCGrowingButton *)lensButton;
  16. - (nullable SCLens *)firstApplicableLens;
  17. @end
  18. @protocol SCFeatureLensSideButton <SCFeature>
  19. @property (nonatomic, weak) id<SCFeatureLensSideButtonDelegate> delegate;
  20. - (void)updateLensButtonVisibility:(CGFloat)visibilityPercentage;
  21. - (void)showLensButtonIfNeeded;
  22. @end
  23. NS_ASSUME_NONNULL_END