TuSDKPFCameraViewControllerBase Class Reference
Inherits from | TuSDKCPResultViewController : TuSDKCPViewController : TuSDKICViewController : UIViewController |
---|---|
Conforms to | TuSDKStillCameraDelegate |
Declared in | TuSDKPFCameraViewControllerBase.h |
ratioType
视频视图显示比例类型 (默认:lsqRatioDefault, 如果设置cameraViewRatio > 0, 将忽略ratioType)
@property (nonatomic) lsqRatioType ratioType
Declared In
TuSDKPFCameraViewControllerBase.h
ratioTypeList
视图显示比例类型列表 ( 优先级 ratioTypeList > ratioType, 默认:lsqTuSDKRatioDefaultTypes)
@property (nonatomic) NSArray<NSNumber*> *ratioTypeList
Discussion
设置 NSNumber 型数组来控制显示的按钮顺序, 例如: @[@(lsqRatioOrgin), @(lsqRatio_1_1), @(lsqRatio_2_3), @(lsqRatio_3_4)]
Declared In
TuSDKPFCameraViewControllerBase.h
cameraViewRatio
视频视图显示比例 (默认:0, 0 <= mRegionRatio, 当设置为0时全屏显示)
@property (nonatomic) CGFloat cameraViewRatio
Declared In
TuSDKPFCameraViewControllerBase.h
camera
相机对象
@property (nonatomic, readonly) id<TuSDKStillCameraInterface> camera
Declared In
TuSDKPFCameraViewControllerBase.h
cameraView
相机视图
@property (nonatomic, readonly) UIView *cameraView
Declared In
TuSDKPFCameraViewControllerBase.h
avPostion
摄像头前后方向 (默认为后置优先)
@property (nonatomic) AVCaptureDevicePosition avPostion
Declared In
TuSDKPFCameraViewControllerBase.h
sessionPreset
摄像头分辨率模式 (默认:AVCaptureSessionPresetHigh)
@property (nonatomic, copy) NSString *sessionPreset
Declared In
TuSDKPFCameraViewControllerBase.h
– getCurrentRatio
获取当前比例
- (CGFloat)getCurrentRatio
Return Value
currentRatio 当前比例
Declared In
TuSDKPFCameraViewControllerBase.h
– getRatioTypes
获取当前可用比例列表
- (NSArray<NSNumber*> *)getRatioTypes
Declared In
TuSDKPFCameraViewControllerBase.h
– setCurrentRatioType:
设置当前比例类型
- (void)setCurrentRatioType:(lsqRatioType)ratioType
Parameters
ratioType |
比例类型 |
---|
Declared In
TuSDKPFCameraViewControllerBase.h
– setFlashMode:
设置闪光灯模式
- (void)setFlashMode:(AVCaptureFlashMode)flashMode
Parameters
flashMode |
闪光灯模式 |
---|
Declared In
TuSDKPFCameraViewControllerBase.h
– onCameraRatioChange:
手动设置相机比例
- (void)onCameraRatioChange:(id)sender
Parameters
sender |
sender |
---|
Declared In
TuSDKPFCameraViewControllerBase.h
– setGuideLineViewState:
设置辅助线显示状态
- (void)setGuideLineViewState:(BOOL)isShow
Parameters
isShow |
是否显示辅助线 |
---|
Declared In
TuSDKPFCameraViewControllerBase.h
– setEnableCaptureWithVolumeKeys:
是音量键拍摄
- (void)setEnableCaptureWithVolumeKeys:(BOOL)isEnableCaptureWithVolumeKeys
Parameters
isEnableCaptureWithVolumeKeys |
是否开启音量键拍摄 |
---|
Declared In
TuSDKPFCameraViewControllerBase.h
– getGuideLineViewState
获取辅助线显示状态
- (BOOL)getGuideLineViewState
Declared In
TuSDKPFCameraViewControllerBase.h
– onCapturePhotoWithVolume
按音量键拍摄
- (void)onCapturePhotoWithVolume
Declared In
TuSDKPFCameraViewControllerBase.h