PanoramaGuideView.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #import "PCSDeviceOrientationManager.h"
  10. UIKIT_EXTERN CGFloat const PanoramaGuideViewWOrH;
  11. typedef NS_ENUM(NSInteger, PanoramaArrowDir) {
  12. PanoramaArrowDirCenter,
  13. PanoramaArrowDirUp,
  14. PanoramaArrowDirDown,
  15. PanoramaArrowDirLeft,
  16. PanoramaArrowDirRight,
  17. };
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface PanoramaGuideView : UIView
  20. @property (nonatomic) TgDirection dir;
  21. @property (nonatomic) PanoramaOrientationViewDirectionEnum orginDir;
  22. //@property (nonatomic) UIImage *lastImage;
  23. - (void)direction:(PanoramaOrientationViewDirectionEnum)dir;
  24. - (void)updatePreviewAspect: (CGFloat)aspect;
  25. - (void)updateOffset:(CGFloat)offset;
  26. - (void)showImageWith:(UIImage *_Nullable)image;
  27. //- (void)updatePromptLabelWith:(TgDirection)dir;
  28. - (void)clearImage;
  29. - (void)updateArrowWith:(PanoramaArrowDir)arrowDir dir:(PanoramaOrientationViewDirectionEnum)dir;
  30. @end
  31. NS_ASSUME_NONNULL_END