PanoramaGuideView.h 862 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // PanoramaGuideView.h
  3. // LenzCameraNativeModuleForRN
  4. //
  5. // Created by 王昭威 on 2023/1/25.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "PanoramaOrientationView.h"
  9. UIKIT_EXTERN CGFloat const PanoramaGuideViewWOrH;
  10. typedef NS_ENUM(NSInteger, PanoramaArrowDir) {
  11. PanoramaArrowDirCenter,
  12. PanoramaArrowDirUp,
  13. PanoramaArrowDirDown,
  14. PanoramaArrowDirLeft,
  15. PanoramaArrowDirRight,
  16. };
  17. NS_ASSUME_NONNULL_BEGIN
  18. @interface PanoramaGuideView : UIView
  19. -(void)direction:(PanoramaOrientationViewDirectionEnum)dir;
  20. - (void)updatePreviewAspect: (CGFloat)aspect;
  21. - (void)updateOffset:(CGFloat)offset;
  22. - (void)showImageWith:(UIImage *_Nullable)image dir:(PanoramaOrientationViewDirectionEnum)dir;
  23. - (void)clearImage;
  24. - (void)updateArrowWith:(PanoramaArrowDir)arrowDir dir:(PanoramaOrientationViewDirectionEnum)dir;
  25. @end
  26. NS_ASSUME_NONNULL_END