TuSDKCPResultViewController Class Reference

Inherits from TuSDKCPViewController : TuSDKICViewController : UIViewController
Declared in TuSDKCPResultViewController.h

Overview

处理结果视图控制器

  saveToTemp

保存到临时文件 (默认不保存, 当设置为YES时, TuSDKResult.tmpFile, 处理完成后将自动清理原始图片)

@property (nonatomic) BOOL saveToTemp

Declared In

TuSDKCPResultViewController.h

  saveToAlbum

保存到系统相册 (默认不保存, 当设置为YES时, TuSDKResult.asset, 处理完成后将自动清理原始图片)

@property (nonatomic) BOOL saveToAlbum

Declared In

TuSDKCPResultViewController.h

  saveToAlbumName

保存到系统相册的相册名称

@property (nonatomic, copy) NSString *saveToAlbumName

Declared In

TuSDKCPResultViewController.h

  outputCompress

照片输出压缩率 0-1 如果设置为0 将保存为PNG格式 (默认: 0.95)

@property (nonatomic) CGFloat outputCompress

Declared In

TuSDKCPResultViewController.h

  waterMarkOption

设置水印选项 (默认为空,如果设置不为空,则输出的图片上将带有水印)

@property (nonatomic) TuSDKWaterMarkOption *waterMarkOption

Declared In

TuSDKCPResultViewController.h

  hasAlbumAccess

是否有访问系统相册权限

@property (nonatomic, readonly) BOOL hasAlbumAccess

Declared In

TuSDKCPResultViewController.h

– notifyProcessingWithResult:

通知处理结果

- (void)notifyProcessingWithResult:(TuSDKResult *)result

Parameters

result

SDK处理结果

Declared In

TuSDKCPResultViewController.h

– asyncNotifyProcessingWithResult:

异步通知处理结果

- (BOOL)asyncNotifyProcessingWithResult:(TuSDKResult *)result

Parameters

result

SDK处理结果

Return Value

BOOL 是否截断默认处理逻辑 (默认: false, 设置为True时使用自定义处理逻辑)

Declared In

TuSDKCPResultViewController.h

– asyncProcessingIfNeedSave:

异步处理如果需要保存文件 (默认完成后执行:@selector(notifyProcessingWithResult:))

- (void)asyncProcessingIfNeedSave:(TuSDKResult *)result

Parameters

result

SDK处理结果

Declared In

TuSDKCPResultViewController.h

– backUIThreadNotifyProcessingWithResult:

返回主线程通知结果

- (void)backUIThreadNotifyProcessingWithResult:(TuSDKResult *)result

Parameters

result

SDK处理结果

Declared In

TuSDKCPResultViewController.h

– saveToTempWithResult:

保存图片到临时文件

- (void)saveToTempWithResult:(TuSDKResult *)result

Parameters

result

相机拍摄结果

result

结束后执行方法

Declared In

TuSDKCPResultViewController.h

– saveToAlbumWithResult:

保存图片到系统相册

- (void)saveToAlbumWithResult:(TuSDKResult *)result

Parameters

result

相机拍摄结果

result

结束后执行方法

Declared In

TuSDKCPResultViewController.h

– addWaterMarkToImage:

添加水印

- (UIImage *)addWaterMarkToImage:(UIImage *)result

Parameters

image

目标图片

Return Value

result

Declared In

TuSDKCPResultViewController.h