TuSDK Class Reference
Inherits from | NSObject |
---|---|
Declared in | TuSDK.h |
Overview
TuSDK 核心 @see-https://tutucloud.com/docs/ios/image/api-core/Classes/TuSDK.html
内部集成滤镜列表(17): Normal, Artistic, Brilliant, Cheerful, Clear, Fade, Forest, Gloss, Harmony, Instant, Lightup, Morning, Newborn, Noir, Relaxed, Rough, Thick, Vintage
需要将 TuSDKFilterTextures.bundle 放入应用项目内
messageHub
进度信息提示
@property (nonatomic, retain) id<TuSDKICMessageHubInterface> messageHub
Declared In
TuSDK.h
openid
udid
@property (nonatomic, strong, readonly) NSString *openid
Availability
v1.0.0
Declared In
TuSDK.h
+ initSdkWithAppKey:
初始化SDK
+ (void)initSdkWithAppKey:(NSString *)appkey
Parameters
appkey |
应用秘钥 (请前往 https://tutucloud.com 申请秘钥) |
---|
Declared In
TuSDK.h
+ initSdkWithAppKey:devType:
初始化SDK
+ (void)initSdkWithAppKey:(NSString *)appkey devType:(NSString *)devType
Parameters
appkey |
应用秘钥 (请前往 https://tutucloud.com 申请秘钥) |
---|---|
devType |
开发模式(需要与lsq_tusdk_configs.json中masters.key匹配, 如果找不到devType将默认读取master字段) |
Declared In
TuSDK.h
+ setLogLevel:
设置日志输出级别
+ (void)setLogLevel:(lsqLogLevel)level
Parameters
level |
日志输出级别 (默认:lsqLogLevelFATAL 不输出) |
---|
Declared In
TuSDK.h
+ setFileLogLevel:
设置文件日志输出级别
+ (void)setFileLogLevel:(lsqLogLevel)level
Parameters
level |
日志输出级别 (默认:lsqLogLevelFATAL 不输出) |
---|
Declared In
TuSDK.h
+ appDownloadPath
应用下载目录
+ (NSString *)appDownloadPath
Return Value
appDownloadPath 应用下载目录
Declared In
TuSDK.h
+ filterManager
+ (TuSDKFilterManager *)filterManager
Return Value
filterManager 滤镜管理器
Declared In
TuSDK.h
+ stickerManager
+ (TuSDKPFStickerLocalPackage *)stickerManager
Return Value
stickerManager 贴纸管理器
Declared In
TuSDK.h
+ checkManagerWithDelegate:
检查滤镜管理器是否初始化
+ (void)checkManagerWithDelegate:(id<TuSDKFilterManagerDelegate>)delegate
Parameters
delegate |
滤镜控管理器委托 |
---|
Declared In
TuSDK.h
+ cameraWithSessionPreset:cameraPosition:cameraView:
+ (id<TuSDKStillCameraInterface>)cameraWithSessionPreset:(NSString *)sessionPreset cameraPosition:(AVCaptureDevicePosition)cameraPosition cameraView:(UIView *)view
Parameters
sessionPreset |
相机分辨率类型 |
---|---|
cameraPosition |
相机设备标识 (前置或后置) |
view |
相机显示容器视图 |
Return Value
相机对象
Declared In
TuSDK.h