SDKParameters.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. //
  2. // SDKParameters.h
  3. // sampleSDK
  4. //
  5. // Created by 王昭威 on 2023/1/21.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "LenzSDKConstant.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface SDKParametersItem : NSObject
  11. @property (nonatomic) SDKFlashModeIndex flashMode;
  12. @property (nonatomic) BOOL isRemake;
  13. @property (nonatomic) SDKCaptureModeIndex model;
  14. @property (nonatomic) SDKVideoQuality videoQuality;
  15. @property (nonatomic) CGFloat quality; //照片质量
  16. @property (nonatomic) NSInteger recTime;
  17. @property (nonatomic) NSInteger quantity;//视频数量 0 不限制
  18. @property (nonatomic) SDKCameraPosition cameraPosition;
  19. @property (nonatomic) NSString *cameraPositionString;
  20. @property (nonatomic) NSNumber *keyFrame;
  21. @property (nonatomic) NSInteger limitRecordTime;
  22. @property (nonatomic) NSString *flashModeString;
  23. @property (nonatomic) bool showPreviewForPanorama;
  24. @property (nonatomic) CGSize resolution;
  25. @property (nonatomic) CGSize videoResolution;
  26. // "flashMode": "auto",
  27. // "isRemake": true,
  28. // "mode": "video",
  29. // "quantity": 0,
  30. // "recTime": 30,
  31. // "type": "back",
  32. // "videoQuality": 480
  33. @end
  34. @interface SDKParameters : NSObject
  35. //@property (nonatomic, assign) NSInteger limitRecordTime;
  36. //@property (nonatomic, assign, readonly) CGSize resolution;
  37. //@property (nonatomic, assign) CGSize videoResolution;
  38. //@property (nonatomic, assign) SDKFlashModeIndex flashMode;
  39. //@property (nonatomic) NSString *flashModeString;
  40. //@property (nonatomic) NSNumber *keyFrame;
  41. @property (nonatomic, assign) SDKCaptureModeIndex modeIndex;
  42. @property (nonatomic) NSString *modeIndexString;
  43. // SDKCaptureModeIndex
  44. @property (nonatomic, copy) NSArray<NSNumber*>* modeIndices;
  45. //@property (nonatomic, assign) SDKCameraPosition cameraPosition;
  46. //@property (nonatomic) NSString *cameraPositionString;
  47. @property (nonatomic, assign) SDKDataRetainedModeIndex retainedMode;
  48. //@property (nonatomic, assign) SDKVideoQuality videoQuality;
  49. //@property (nonatomic) NSInteger quality;
  50. //@property (nonatomic, assign) bool showPreviewForPanorama;
  51. @property (nonatomic) NSArray <SDKParametersItem *> *items;
  52. + (instancetype)shared;
  53. @end
  54. NS_ASSUME_NONNULL_END