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