TuSDKPFCameraViewController Class Reference
Inherits from | TuSDKPFCameraViewControllerBase |
---|---|
Conforms to | TuSDKPFCameraFilterGroupViewDelegate TuSDKPFCameraPreviewViewDelegate TuSDKPFCameraViewDelegate |
Declared in | TuSDKPFCameraViewController.h |
defaultStyleView
默认样式视图 (如果覆盖 buildDefaultStyleView 方法,实现了自己的视图,defaultStyleView == nil)
@property (nonatomic, readonly) TuSDKPFCameraView *defaultStyleView
Declared In
TuSDKPFCameraViewController.h
delegate
默认相机视图控制器委托
@property (nonatomic, weak) id<TuSDKPFCameraDelegate> delegate
Declared In
TuSDKPFCameraViewController.h
viewClazz
视图类 (默认:TuSDKPFCameraView, 需要继承 TuSDKPFCameraView)
@property (nonatomic, strong) Class viewClazz
Declared In
TuSDKPFCameraViewController.h
configBarViewClazz
默认相机控制栏视图类 (默认:TuSDKPFCameraConfigView, 需要继承 TuSDKPFCameraConfigView)
@property (nonatomic, strong) Class configBarViewClazz
Declared In
TuSDKPFCameraViewController.h
bottomBarViewClazz
默认相机底部栏视图类 (默认:TuSDKPFCameraBottomView, 需要继承 TuSDKPFCameraBottomView)
@property (nonatomic, strong) Class bottomBarViewClazz
Declared In
TuSDKPFCameraViewController.h
settingViewClazz
设置视图类 (默认:TuSDKPFCameraSettingView, 需要继承 TuSDKPFCameraSettingView)
@property (nonatomic, strong) Class settingViewClazz
Declared In
TuSDKPFCameraViewController.h
previewViewClazz
结果预览视图类 (默认:TuSDKPFCameraPreviewView, 需要继承 TuSDKPFCameraPreviewView)
@property (nonatomic, strong) Class previewViewClazz
Declared In
TuSDKPFCameraViewController.h
filterViewClazz
滤镜视图类 (默认:TuSDKPFCameraFilterGroupView, 需要继承 TuSDKPFCameraFilterGroupView)
@property (nonatomic, strong) Class filterViewClazz
Declared In
TuSDKPFCameraViewController.h
focusTouchViewClazz
聚焦触摸视图类 (需要继承 TuSDKCPFocusTouchView)
@property (nonatomic, strong) Class focusTouchViewClazz
Declared In
TuSDKPFCameraViewController.h
defaultFlashMode
闪光灯模式 (默认:AVCaptureFlashModeOff)
@property (nonatomic) AVCaptureFlashMode defaultFlashMode
Declared In
TuSDKPFCameraViewController.h
enableFilters
是否开启滤镜支持 (默认: 关闭)
@property (nonatomic) BOOL enableFilters
Declared In
TuSDKPFCameraViewController.h
showFilterDefault
默认是否显示滤镜视图 (默认: 不显示, 如果enableFilters = NO, showFilterDefault将失效)
@property (nonatomic) BOOL showFilterDefault
Declared In
TuSDKPFCameraViewController.h
enableFilterHistory
开启滤镜历史记录
@property (nonatomic) BOOL enableFilterHistory
Declared In
TuSDKPFCameraViewController.h
enableNormalFilter
开启无效果滤镜 (默认: 开启)
@property (nonatomic) BOOL enableNormalFilter
Declared In
TuSDKPFCameraViewController.h
enableOnlineFilter
开启在线滤镜
@property (nonatomic) BOOL enableOnlineFilter
Declared In
TuSDKPFCameraViewController.h
enablePreview
是否预览拍照结果 (默认: NO 不预览)
@property (nonatomic) BOOL enablePreview
Declared In
TuSDKPFCameraViewController.h
onlineControllerClazz
在线滤镜控制器类型 (需要继承 UIViewController,以及实现TuSDKCPFilterOnlineControllerInterface接口)
@property (nonatomic) Class onlineControllerClazz
Declared In
TuSDKPFCameraViewController.h
displayFilterSubtitles
显示滤镜标题视图
@property (nonatomic) BOOL displayFilterSubtitles
Declared In
TuSDKPFCameraViewController.h
filterBarCellWidth
滤镜列表行视图宽度
@property (nonatomic) CGFloat filterBarCellWidth
Declared In
TuSDKPFCameraViewController.h
filterBarHeight
滤镜列表选择栏高度
@property (nonatomic) CGFloat filterBarHeight
Declared In
TuSDKPFCameraViewController.h
filterBarGroupCellClazz
滤镜分组列表行视图类 (默认:TuSDKCPGroupFilterGroupCell, 需要继承 TuSDKCPGroupFilterGroupCell)
@property (nonatomic, strong) Class filterBarGroupCellClazz
Declared In
TuSDKPFCameraViewController.h
filterBarTableCellClazz
滤镜列表行视图类 (默认:TuSDKCPGroupFilterItemCell, 需要继承 TuSDKCPGroupFilterItemCell)
@property (nonatomic, strong) Class filterBarTableCellClazz
Declared In
TuSDKPFCameraViewController.h
filterGroup
需要显示的滤镜名称列表 (如果为空将显示所有自定义滤镜)
@property (nonatomic, retain) NSArray *filterGroup
Declared In
TuSDKPFCameraViewController.h
saveLastFilter
是否保存最后一次使用的滤镜
@property (nonatomic) BOOL saveLastFilter
Declared In
TuSDKPFCameraViewController.h
autoSelectGroupDefaultFilter
自动选择分组滤镜指定的默认滤镜
@property (nonatomic) BOOL autoSelectGroupDefaultFilter
Declared In
TuSDKPFCameraViewController.h
enableFilterConfig
开启滤镜配置选项
@property (nonatomic) BOOL enableFilterConfig
Declared In
TuSDKPFCameraViewController.h
enableLongTouchCapture
是否开启长按拍摄 (默认: NO)
@property (nonatomic) BOOL enableLongTouchCapture
Declared In
TuSDKPFCameraViewController.h
disableContinueFoucs
禁用持续自动对焦 (默认: NO)
@property (nonatomic) BOOL disableContinueFoucs
Declared In
TuSDKPFCameraViewController.h
autoFoucsDelay
自动聚焦延时 (默认: 5秒)
@property (nonatomic) NSTimeInterval autoFoucsDelay
Declared In
TuSDKPFCameraViewController.h
longTouchDelay
长按延时 (默认: 1.2秒)
@property (nonatomic) NSTimeInterval longTouchDelay
Declared In
TuSDKPFCameraViewController.h
regionViewColor
视频覆盖区域颜色 (默认:[UIColor blackColor])
@property (nonatomic, retain) UIColor *regionViewColor
Declared In
TuSDKPFCameraViewController.h
outputSize
照片输出分辨率
@property (nonatomic) CGSize outputSize
Declared In
TuSDKPFCameraViewController.h
disableMirrorFrontFacing
禁用前置摄像头自动水平镜像 (默认: NO,前置摄像头拍摄结果自动进行水平镜像)
@property (nonatomic) BOOL disableMirrorFrontFacing
Declared In
TuSDKPFCameraViewController.h
displayAlbumPoster
显示相册照片,点击后请求打开相册 (默认: false,不显示相册入口)
@property (nonatomic) BOOL displayAlbumPoster
Declared In
TuSDKPFCameraViewController.h
openedByAlbumController
是否从相册界面进入 (默认: NO)
@property (nonatomic) BOOL openedByAlbumController
Declared In
TuSDKPFCameraViewController.h
displayGuideLine
默认是否显示辅助线 (默认: false)
@property (nonatomic) BOOL displayGuideLine
Declared In
TuSDKPFCameraViewController.h
lastFilterCode
最后选中的滤镜代号
@property (nonatomic) NSString *lastFilterCode
Declared In
TuSDKPFCameraViewController.h
enableFaceDetection
是否开启脸部追踪
@property (nonatomic) BOOL enableFaceDetection
Declared In
TuSDKPFCameraViewController.h
enableCaptureWithVolumeKeys
是否允许音量键拍照 (默认关闭)
@property (nonatomic) BOOL enableCaptureWithVolumeKeys
Declared In
TuSDKPFCameraViewController.h
enableFocalDistance
是否开启焦距调节 (默认关闭)
@property (nonatomic, assign) BOOL enableFocalDistance
Declared In
TuSDKPFCameraViewController.h
focalDistanceScale
相机显示焦距 (默认为 1,最大不可超过硬件最大值,当小于 1 时,取 1)
@property (nonatomic, assign) CGFloat focalDistanceScale
Declared In
TuSDKPFCameraViewController.h
– buildFilterBar:
创建滤镜栏视图
- (void)buildFilterBar:(TuSDKPFCameraView *)view
Parameters
view |
默认样式视图 (如需创建自定义视图,请覆盖该方法,并配置自己的视图类) |
---|
Declared In
TuSDKPFCameraViewController.h
– configWithGroupFilterView:
配置滤镜栏视图
- (void)configWithGroupFilterView:(TuSDKCPGroupFilterBaseView *)view
Parameters
view |
滤镜栏视图 |
---|
Declared In
TuSDKPFCameraViewController.h
– onSelectedFilterCode:
选中一个滤镜
- (BOOL)onSelectedFilterCode:(NSString *)code
Parameters
filterName |
滤镜名称 |
---|
Return Value
BOOL 是否成功切换滤镜
Declared In
TuSDKPFCameraViewController.h