ALAssetsLibrary(CustomPhotoAlbum) Category Reference

Declared in TuSDKTSALAssets+Extend.h

Overview

ALAssetsLibrary相册扩展

+ lsqSaveImageData:completionBlock:

保存图片数据到系统相册

+ (BOOL)lsqSaveImageData:(NSData *)data completionBlock:(SaveImageCompletion)completionBlock

Parameters

data

图片数据

completionBlock

完成回掉

Return Value

是否允许操作系统相册

Declared In

TuSDKTSALAssets+Extend.h

+ lsqSaveImageData:metadata:completionBlock:

保存图片数据到系统相册

+ (BOOL)lsqSaveImageData:(NSData *)data metadata:(NSDictionary *)metadata completionBlock:(SaveImageCompletion)completionBlock

Parameters

data

图片数据

metadata

照片meta信息

completionBlock

完成回掉

Return Value

是否允许操作系统相册

Declared In

TuSDKTSALAssets+Extend.h

+ lsqSaveImageData:toAblum:completionBlock:

保存图片数据到指定相册

+ (BOOL)lsqSaveImageData:(NSData *)data toAblum:(NSString *)albumName completionBlock:(SaveImageCompletion)completionBlock

Parameters

data

图片数据

albumName

相册名称

completionBlock

完成回掉

Return Value

是否允许操作系统相册

Declared In

TuSDKTSALAssets+Extend.h

+ lsqSaveImageData:toAblum:completionBlock:ablumCompletionBlock:

保存图片数据到系统相册

+ (BOOL)lsqSaveImageData:(NSData *)data toAblum:(NSString *)albumName completionBlock:(SaveImageCompletion)completionBlock ablumCompletionBlock:(SaveImageAblumCompletion)ablumCompletionBlock

Parameters

data

图片数据

albumName

相册名称

completionBlock

完成回掉

ablumCompletionBlock

保存相片到指定相册

Return Value

是否允许操作系统相册

Declared In

TuSDKTSALAssets+Extend.h

+ lsqSaveImageData:metadata:toAblum:completionBlock:ablumCompletionBlock:

保存图片数据到系统相册

+ (BOOL)lsqSaveImageData:(NSData *)data metadata:(NSDictionary *)metadata toAblum:(NSString *)albumName completionBlock:(SaveImageCompletion)completionBlock ablumCompletionBlock:(SaveImageAblumCompletion)ablumCompletionBlock

Parameters

data

图片数据

metadata

照片meta信息

albumName

相册名称

completionBlock

相册名称

ablumCompletionBlock

保存相片到指定相册

Return Value

是否允许操作系统相册

Declared In

TuSDKTSALAssets+Extend.h

+ lsqSaveImage:metadata:toAblum:completionBlock:ablumCompletionBlock:

保存图片数据到系统相册

+ (BOOL)lsqSaveImage:(UIImage *)image metadata:(NSDictionary *)metadata toAblum:(NSString *)albumName completionBlock:(SaveImageCompletion)completionBlock ablumCompletionBlock:(SaveImageAblumCompletion)ablumCompletionBlock

Parameters

image

图片对象

metadata

照片meta信息

albumName

相册名称

completionBlock

保存相片到系统相册回掉

ablumCompletionBlock

保存相片到指定相册

Return Value

是否允许操作系统相册

Declared In

TuSDKTSALAssets+Extend.h

+ lsqSaveVideo:toAblum:completionBlock:ablumCompletionBlock:

保存视频到系统相册

+ (BOOL)lsqSaveVideo:(NSURL *)videoURL toAblum:(NSString *)albumName completionBlock:(SaveImageCompletion)completionBlock ablumCompletionBlock:(SaveImageAblumCompletion)ablumCompletionBlock

Parameters

videoURL

视频文件

albumName

相册名称

completionBlock

保存完成

ablumCompletionBlock

保存视频到指定相册

Return Value

是否允许操作系统相册

Declared In

TuSDKTSALAssets+Extend.h

– lsqAddALAsset:toAblum:ablumCompletionBlock:

添加照片对象到指定相册

- (void)lsqAddALAsset:(ALAsset *)asset toAblum:(NSString *)albumName ablumCompletionBlock:(SaveImageAblumCompletion)ablumCompletionBlock

Parameters

asset

照片对象

albumName

相册名称

ablumCompletionBlock

保存相片到指定相册

Declared In

TuSDKTSALAssets+Extend.h