JXCameraVC.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // JXCameraVC.h
  3. // shiku_im
  4. //
  5. // Created by p on 2017/11/6.
  6. // Copyright © 2017年 Reese. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class JXCameraVC;
  10. @protocol JXCameraVCDelegate <NSObject>
  11. - (void)cameraVC:(JXCameraVC *)vc didFinishWithImage:(UIImage *)image;
  12. - (void)cameraVC:(JXCameraVC *)vc didFinishWithVideoPath:(NSString *)filePath timeLen:(NSInteger)timeLen;
  13. @end
  14. @interface JXCameraVC : UIViewController
  15. @property (nonatomic, weak) id<JXCameraVCDelegate>cameraDelegate;
  16. @property(nonatomic,assign) int maxTime;
  17. @property(nonatomic,assign) int minTime;
  18. @property(nonatomic,weak) id delegate;
  19. @property(assign) SEL didRecord;
  20. @property (nonatomic,strong) NSString* outputFileName;//返回的video
  21. /**
  22. * isVideo YES:开启视频录制,若不需要即不需赋值
  23. * isPhoto YES:开启照片拍摄,若不需要即不需赋值
  24. * 若需要 视频录制、照片拍摄同时开启,即都不赋值
  25. */
  26. @property (nonatomic, assign) BOOL isVideo;
  27. @property (nonatomic, assign) BOOL isPhoto;
  28. @end