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.

34 lines
944 B

  1. //
  2. // SCFeatureZooming.h
  3. // SCCamera
  4. //
  5. // Created by Xiaokang Liu on 2018/4/19.
  6. //
  7. #import "SCFeature.h"
  8. #import <SCCameraFoundation/SCManagedCaptureDevicePosition.h>
  9. #import <SCSearch/SCSearchSnapZoomLevelProviding.h>
  10. @class SCPreviewPresenter;
  11. @protocol SCFeatureZooming;
  12. @protocol SCFeatureZoomingDelegate <NSObject>
  13. - (void)featureZoomingForceTouchedWhileRecording:(id<SCFeatureZooming>)featureZooming;
  14. - (BOOL)featureZoomingIsInitiatedRecording:(id<SCFeatureZooming>)featureZooming;
  15. @end
  16. @protocol SCFeatureZooming <SCFeature, SCSearchSnapZoomLevelProviding>
  17. @property (nonatomic, weak) id<SCFeatureZoomingDelegate> delegate;
  18. @property (nonatomic, weak) SCPreviewPresenter *previewPresenter;
  19. - (void)resetOffset;
  20. - (void)resetScale;
  21. - (void)cancelPreview;
  22. - (void)flipOffset;
  23. - (void)resetBeginningScale;
  24. - (void)toggleCameraForReset:(SCManagedCaptureDevicePosition)devicePosition;
  25. - (void)recordCurrentZoomStateForReset;
  26. @end