灵云SDK开发手册(iOS API)  8.1
HCICaptureControlView.h
1 //
2 // HCICaptureControlView.h
3 // Pods
4 //
5 // Created by jths on 2017/8/1.
6 //
7 //
8 
9 #import <UIKit/UIKit.h>
10 #import "HCICaptureTypes.h"
11 #import <AVFoundation/AVFoundation.h>
12 typedef NS_ENUM(NSInteger, HCICameraOrientation) {
13  HCICameraOrientationPortrait = AVCaptureVideoOrientationPortrait,
14  HCICameraOrientationPortraitUpsideDown = AVCaptureVideoOrientationPortraitUpsideDown,
15  HCICameraOrientationLandscapeRight = AVCaptureVideoOrientationLandscapeRight,
16  HCICameraOrientationLandscapeLeft = AVCaptureVideoOrientationLandscapeLeft,
17 };
18 
19 
23 #define kDefaultRadio 1.6
24 
28 @interface HCICaptureControlView : UIView
29 
33 @property (nonatomic, assign) CGRect captureRect;
34 
38 @property (nonatomic, strong, readonly) UIView *captureAreaView;
39 
43 @property (nonatomic, strong, readonly) UIView *backgroundView;
44 
48 @property (nonatomic, assign) CaptureControlState controlState;
49 
53 @property (nonatomic, copy) NSString *takePicErr;
54 
58 @property (nonatomic, assign) HCICameraOrientation cameraOrientation;
59 
60 
61 #pragma mark - 方法定义
62 
63 
70 - (id)initWithPreset:(CaptureSessionPreset)sessionPreset;
71 
75 - (void)onLightButtonClick;
76 
80 - (void)onTakePicButtonClick;
81 
82 @end
83