FUCaptureButton.h 530 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // FUCaptureButton.h
  3. // FULiveDemo
  4. //
  5. // Created by 项林平 on 2022/8/10.
  6. //
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @protocol FUCaptureButtonDelegate <NSObject>
  10. - (void)captureButtonDidTakePhoto;
  11. - (void)captureButtonDidStartRecording;
  12. - (void)captureButtonDidFinishRecording;
  13. @end
  14. @interface FUCaptureButton : UIView
  15. /// 是否可以录制视频,默认为YES
  16. @property (nonatomic, assign) BOOL recordVideo;
  17. @property (nonatomic, weak) id<FUCaptureButtonDelegate> delegate;
  18. @end
  19. NS_ASSUME_NONNULL_END