TuSDKPFCameraOptions Class Reference
Inherits from | TuSDKCPResultOptions |
---|---|
Declared in | TuSDKPFCameraOptions.h |
viewClazz
视图类 (默认:TuSDKPFCameraView, 需要继承 TuSDKPFCameraView)
@property (nonatomic, strong) Class viewClazz
Declared In
TuSDKPFCameraOptions.h
configBarViewClazz
默认相机控制栏视图类 (默认:TuSDKPFCameraConfigView, 需要继承 TuSDKPFCameraConfigView)
@property (nonatomic, strong) Class configBarViewClazz
Declared In
TuSDKPFCameraOptions.h
bottomBarViewClazz
默认相机底部栏视图类 (默认:TuSDKPFCameraBottomView, 需要继承 TuSDKPFCameraBottomView)
@property (nonatomic, strong) Class bottomBarViewClazz
Declared In
TuSDKPFCameraOptions.h
settingViewClazz
设置视图类 (默认:TuSDKPFCameraSettingView, 需要继承 TuSDKPFCameraSettingView)
@property (nonatomic, strong) Class settingViewClazz
Declared In
TuSDKPFCameraOptions.h
previewViewClazz
结果预览视图类 (默认:TuSDKPFCameraPreviewView, 需要继承 TuSDKPFCameraPreviewView)
@property (nonatomic, strong) Class previewViewClazz
Declared In
TuSDKPFCameraOptions.h
filterViewClazz
滤镜视图类 (默认:TuSDKPFCameraFilterGroupView, 需要继承 TuSDKPFCameraFilterGroupView)
@property (nonatomic, strong) Class filterViewClazz
Declared In
TuSDKPFCameraOptions.h
focusTouchViewClazz
聚焦触摸视图类 (默认:TuSDKCPFocusTouchView, 需要继承 TuSDKCPFocusTouchView)
@property (nonatomic, strong) Class focusTouchViewClazz
Declared In
TuSDKPFCameraOptions.h
cameraPostion
摄像头前后方向 (默认为后置优先)
@property (nonatomic) AVCaptureDevicePosition cameraPostion
Declared In
TuSDKPFCameraOptions.h
cameraDefaultFlashMode
闪光灯模式 (默认:AVCaptureFlashModeOff)
@property (nonatomic) AVCaptureFlashMode cameraDefaultFlashMode
Declared In
TuSDKPFCameraOptions.h
sessionPreset
摄像头分辨率模式 (默认:AVCaptureSessionPresetHigh)
@property (nonatomic, copy) NSString *sessionPreset
Declared In
TuSDKPFCameraOptions.h
enableFilters
是否开启滤镜支持 (默认: 关闭)
@property (nonatomic) BOOL enableFilters
Declared In
TuSDKPFCameraOptions.h
showFilterDefault
默认是否显示滤镜视图 (默认: 不显示, 如果enableFilters = NO, showFilterDefault将失效)
@property (nonatomic) BOOL showFilterDefault
Declared In
TuSDKPFCameraOptions.h
enableFilterHistory
开启滤镜历史记录
@property (nonatomic) BOOL enableFilterHistory
Declared In
TuSDKPFCameraOptions.h
enableNormalFilter
开启无效果滤镜 (默认: 开启)
@property (nonatomic) BOOL enableNormalFilter
Declared In
TuSDKPFCameraOptions.h
enableOnlineFilter
开启在线滤镜
@property (nonatomic) BOOL enableOnlineFilter
Declared In
TuSDKPFCameraOptions.h
enablePreview
是否预览拍照结果 (默认: NO 不预览)
@property (nonatomic) BOOL enablePreview
Declared In
TuSDKPFCameraOptions.h
onlineControllerClazz
在线滤镜控制器类型 (需要继承 UIViewController,以及实现TuSDKCPFilterOnlineControllerInterface接口)
@property (nonatomic) Class onlineControllerClazz
Declared In
TuSDKPFCameraOptions.h
displayFilterSubtitles
显示滤镜标题视图
@property (nonatomic) BOOL displayFilterSubtitles
Declared In
TuSDKPFCameraOptions.h
filterBarCellWidth
滤镜列表行视图宽度
@property (nonatomic) CGFloat filterBarCellWidth
Declared In
TuSDKPFCameraOptions.h
filterBarHeight
滤镜列表选择栏高度
@property (nonatomic) CGFloat filterBarHeight
Declared In
TuSDKPFCameraOptions.h
filterBarGroupCellClazz
滤镜分组列表行视图类 (默认:TuSDKCPGroupFilterGroupCell, 需要继承 TuSDKCPGroupFilterGroupCell)
@property (nonatomic, strong) Class filterBarGroupCellClazz
Declared In
TuSDKPFCameraOptions.h
filterBarTableCellClazz
滤镜列表行视图类 (默认:TuSDKCPGroupFilterItem, 需要继承 TuSDKCPGroupFilterItem)
@property (nonatomic, strong) Class filterBarTableCellClazz
Declared In
TuSDKPFCameraOptions.h
filterGroup
需要显示的滤镜名称列表 (如果为空将显示所有自定义滤镜)
@property (nonatomic, retain) NSArray *filterGroup
Declared In
TuSDKPFCameraOptions.h
saveLastFilter
是否保存最后一次使用的滤镜
@property (nonatomic) BOOL saveLastFilter
Declared In
TuSDKPFCameraOptions.h
autoSelectGroupDefaultFilter
自动选择分组滤镜指定的默认滤镜
@property (nonatomic) BOOL autoSelectGroupDefaultFilter
Declared In
TuSDKPFCameraOptions.h
enableFilterConfig
开启滤镜配置选项
@property (nonatomic) BOOL enableFilterConfig
Declared In
TuSDKPFCameraOptions.h
cameraViewRatio
视频视图显示比例 (默认:0, 0 <= mRegionRatio, 当设置为0时全屏显示)
@property (nonatomic) CGFloat cameraViewRatio
Declared In
TuSDKPFCameraOptions.h
ratioType
视频视图显示比例类型 (默认:lsqRatioDefault, 如果设置cameraViewRatio > 0, 将忽略ratioType)
@property (nonatomic) lsqRatioType ratioType
Declared In
TuSDKPFCameraOptions.h
enableLongTouchCapture
是否开启长按拍摄 (默认: NO)
@property (nonatomic) BOOL enableLongTouchCapture
Declared In
TuSDKPFCameraOptions.h
disableContinueFoucs
禁用持续自动对焦 (默认: NO)
@property (nonatomic) BOOL disableContinueFoucs
Declared In
TuSDKPFCameraOptions.h
autoFoucsDelay
自动聚焦延时 (默认: 5秒)
@property (nonatomic) NSTimeInterval autoFoucsDelay
Declared In
TuSDKPFCameraOptions.h
longTouchDelay
长按延时 (默认: 1.2秒)
@property (nonatomic) NSTimeInterval longTouchDelay
Declared In
TuSDKPFCameraOptions.h
regionViewColor
视频覆盖区域颜色 (默认:[UIColor blackColor])
@property (nonatomic, retain) UIColor *regionViewColor
Declared In
TuSDKPFCameraOptions.h
disableMirrorFrontFacing
禁用前置摄像头自动水平镜像 (默认: NO,前置摄像头拍摄结果自动进行水平镜像)
@property (nonatomic) BOOL disableMirrorFrontFacing
Declared In
TuSDKPFCameraOptions.h
displayAlbumPoster
显示相册照片,点击后请求打开相册 (默认: false,不显示相册入口)
@property (nonatomic) BOOL displayAlbumPoster
Declared In
TuSDKPFCameraOptions.h
displayGuideLine
是否显示辅助线 (默认: false)
@property (nonatomic) BOOL displayGuideLine
Declared In
TuSDKPFCameraOptions.h
enableFaceDetection
是否开启脸部追踪
@property (nonatomic) BOOL enableFaceDetection
Declared In
TuSDKPFCameraOptions.h
waterMarkOption
设置水印选项 (默认为空,如果设置不为空,则输出的图片上将带有水印)
@property (nonatomic) TuSDKWaterMarkOption *waterMarkOption
Declared In
TuSDKPFCameraOptions.h
enableCaptureWithVolumeKeys
是否允许音量键拍照 (默认关闭)
@property (nonatomic) BOOL enableCaptureWithVolumeKeys
Declared In
TuSDKPFCameraOptions.h
enableFocalDistance
是否开启焦距调节 (默认关闭)
@property (nonatomic, assign) BOOL enableFocalDistance
Declared In
TuSDKPFCameraOptions.h
focalDistanceScale
相机显示焦距 (默认为 1,最大不可超过硬件最大值,当小于 1 时,取 1)
@property (nonatomic, assign) CGFloat focalDistanceScale
Declared In
TuSDKPFCameraOptions.h
– viewController
创建系统相机控制器对象
- (TuSDKPFCameraViewController *)viewController
Return Value
系统相机控制器对象
Declared In
TuSDKPFCameraOptions.h