PCSModeList.h 773 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // PCSModeList.h
  3. // sampleSDK
  4. //
  5. // Created by 王昭威 on 2023/1/15.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "LenzSDKConstant.h"
  9. #import "LenzHeader.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. typedef BOOL(^PCSModeListIndexChanged)(NSUInteger newMode, NSUInteger oldMode, NSUInteger newIndex);
  12. @interface PCSModeList : UIView
  13. @property (nonatomic, assign) SDKCaptureModeIndex mode;
  14. @property (nonatomic, copy) PCSModeListIndexChanged indexChangedHandler;
  15. @property (nonatomic, assign) NSUInteger index;
  16. @property (nonatomic, assign) NSUInteger selectMode;
  17. - (void)reloadWith: (NSArray<id<OperationNodeProtocol>>*)items;
  18. - (void)updateIndexByTanslation: (CGPoint)translation;
  19. - (void)updateItemsConstraints;
  20. //- (void)selectItemAt:(NSUInteger)index;
  21. @end
  22. NS_ASSUME_NONNULL_END