![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingSmartCloudManager.h>
Class Methods | |
(BOOL) | + isSupportCloudStorage: |
(void) | + fetchSecretKeyWithDevId:completion: |
(BOOL) | + isSupportCloudStorage: |
(void) | + fetchSecretKeyWithDevId:completion: |
Properties | |
NSString * | devId |
BOOL | autoRender |
NSArray< ThingSmartCloudDayModel * > * | cloudDays |
id< ThingSmartCloudManagerDelegate > | delegate |
NSString * | encryptKey |
NSString * | authJson |
NSTimeZone * | timeZone |
CGSize | videoStretchSize |
BOOL | enableEncryptedImage |
Definition at line 44 of file ThingSmartCloudManager.h.
- ("Use -[ThingSmartCameraMessageMediaPlayer) stopPlay: |
[^en] stop play audio [$en]
[^zh] 停止播放音频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) resumePlay: |
[^en] resume play audio [$en]
[^zh] 恢复播放音频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) pausePlay: |
[^en] pause play audio [$en]
[^zh] 暂停播放音频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) stopPlay: |
[^en] stop play video [$en]
[^zh] 停止播放视频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) resumePlay: |
[^en] resume play video [$en]
[^zh] 恢复播放视频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) pausePlay: |
[^en] pause play video [$en]
[^zh] 暂停播放视频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) resumePlay: |
[^en] resume play audio [$en]
[^zh] 恢复播放音频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) pausePlay: |
[^en] pause play audio [$en]
[^zh] 暂停播放音频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) stopPlay: |
[^en] stop play audio [$en]
[^zh] 停止播放音频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) stopPlay: |
[^en] stop play video [$en]
[^zh] 停止播放视频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) pausePlay: |
[^en] pause play video [$en]
[^zh] 暂停播放视频 [$zh]
- ("Use -[ThingSmartCameraMessageMediaPlayer) resumePlay: |
[^en] resume play video [$en]
[^zh] 恢复播放视频 [$zh]
- (int) cancelDownloadCloudVideo |
[^en] cancel cloud video download task [$en] [^zh] 取消云存储视频下载 [$zh]
- (int) cancelDownloadCloudVideo |
[^en] cancel cloud video download task [$en] [^zh] 取消云存储视频下载 [$zh]
- (int) configCloudDataTags: | (NSString *) | jsonCloudDataTags |
[^en] config cloud data tags. if you want reqeust cloud data for service api by yourself instead of use "loadCloudData:", you shoud call this method before play cloud video. [$en]
[^zh] 配置云端数据标签。如果您想要自己调用api代替使用“loadCloudData”请求云端数据,您应该再播放云端视频之前调用此方法。 [$zh]
jsonCloudDataTags | [^en]cloud data tags[$en] [^zh]云数据标签[$zh] |
- (int) configCloudDataTags: | (NSString *) | jsonCloudDataTags |
[^en] config cloud data tags. if you want reqeust cloud data for service api by yourself instead of use "loadCloudData:", you shoud call this method before play cloud video. [$en]
[^zh] 配置云端数据标签。如果您想要自己调用api代替使用“loadCloudData”请求云端数据,您应该再播放云端视频之前调用此方法。 [$zh]
jsonCloudDataTags | [^en]cloud data tags[$en] [^zh]云数据标签[$zh] |
- (NSString *) configCloudDataTagsV2: | (NSString *) | jsonCloudDataTags |
- (NSString *) configCloudDataTagsV2: | (NSString *) | jsonCloudDataTags |
- (void) deleteAllDayCloudVideoWithDevId: | (NSString *) | devId | |
timeRange: | (NSRange) | timeRange | |
extParams: | (NSDictionary *) | extParams | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] delete cloud video which during the time range [$en] [^zh] 删除指定设备一个全天时间段里的云存储视频 [$zh]
devId | [^en] specified device id [$en] [^zh] 指定设备id [$zh] |
timeRange | [^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh] |
extParams | [^en] ext params [$en] [^zh] 扩展参数 [$zh] |
success | success callback |
failure | failure callback |
- (void) deleteAllDayCloudVideoWithDevId: | (NSString *) | devId | |
timeRange: | (NSRange) | timeRange | |
extParams: | (NSDictionary *) | extParams | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] delete cloud video which during the time range [$en] [^zh] 删除指定设备一个全天时间段里的云存储视频 [$zh]
devId | [^en] specified device id [$en] [^zh] 指定设备id [$zh] |
timeRange | [^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh] |
extParams | [^en] ext params [$en] [^zh] 扩展参数 [$zh] |
success | success callback |
failure | failure callback |
- (void) deleteAllDayCloudVideoWithRange: | (NSRange) | timeRange | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] delete current device's cloud video which during the time range [$en] [^zh] 删除当前设备一个全天时间段里的云存储视频 [$zh]
timeRange | [^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh] |
success | success callback |
failure | failure callback |
- (void) deleteAllDayCloudVideoWithRange: | (NSRange) | timeRange | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] delete current device's cloud video which during the time range [$en] [^zh] 删除当前设备一个全天时间段里的云存储视频 [$zh]
timeRange | [^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh] |
success | success callback |
failure | failure callback |
- (void) deleteCloudVideoWithDevId: | (NSString *) | devId | |
timeRange: | (NSRange) | timeRange | |
extParams: | (NSDictionary *) | extParams | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] delete cloud video which during the time range [$en] [^zh] 删除指定设备一个时间段里的云存储视频 [$zh]
devId | [^en] specified device id [$en] [^zh] 指定设备id [$zh] |
timeRange | [^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh] |
extParams | [^en] ext params [$en] [^zh] 扩展参数 [$zh] |
success | success callback |
failure | failure callback |
- (void) deleteCloudVideoWithDevId: | (NSString *) | devId | |
timeRange: | (NSRange) | timeRange | |
extParams: | (NSDictionary *) | extParams | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] delete cloud video which during the time range [$en] [^zh] 删除指定设备一个时间段里的云存储视频 [$zh]
devId | [^en] specified device id [$en] [^zh] 指定设备id [$zh] |
timeRange | [^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh] |
extParams | [^en] ext params [$en] [^zh] 扩展参数 [$zh] |
success | success callback |
failure | failure callback |
- (void) deleteCloudVideoWithRange: | (NSRange) | timeRange | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] delete current device's cloud video which during the time range [$en] [^zh] 删除当前设备一个时间段里的云存储视频 [$zh]
timeRange | [^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh] |
success | success callback |
failure | failure callback |
- (void) deleteCloudVideoWithRange: | (NSRange) | timeRange | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] delete current device's cloud video which during the time range [$en] [^zh] 删除当前设备一个时间段里的云存储视频 [$zh]
timeRange | [^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh] |
success | success callback |
failure | failure callback |
- (void) destroy |
[^en] destory resource [$en]
[^zh] 销毁 资源 [$zh]
- (void) destroy |
[^en] destory resource [$en]
[^zh] 销毁 资源 [$zh]
- (int) downloadCloudVideoWithRange: | (NSRange) | timeRange | |
filePath: | (NSString *) | videoPath | |
success: | (DownloadSuccess) | success | |
progress: | (DownloadProgress) | progress | |
failure: | (DownloadFailure) | failure | |
- (int) downloadCloudVideoWithRange: | (NSRange) | timeRange | |
filePath: | (NSString *) | videoPath | |
success: | (DownloadSuccess) | success | |
progress: | (DownloadProgress) | progress | |
failure: | (DownloadFailure) | failure | |
- (void) enableAIDetect: | (BOOL) | enable | |
success: | (void(^)(BOOL result)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
是否开启ai分析能力
- (void) enableAIDetect: | (BOOL) | enable | |
success: | (void(^)(BOOL result)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
是否开启ai分析能力
- (void) enableAIDetectEventType: | (NSString *) | type | |
enable: | (BOOL) | enable | |
success: | (void(^)(BOOL result)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
更新ai分析事件类型
- (void) enableAIDetectEventType: | (NSString *) | type | |
enable: | (BOOL) | enable | |
success: | (void(^)(BOOL result)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
更新ai分析事件类型
- (int) enableMute: | (BOOL) | mute | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] set mute. [$en]
[^zh] 设置静音 [$zh]
mute | [^en]mute sound.[$en] [^zh]是否静音[$zh] |
success | success call back. |
failure | failed call back. |
- (int) enableMute: | (BOOL) | mute | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] set mute. [$en]
[^zh] 设置静音 [$zh]
mute | [^en]mute sound.[$en] [^zh]是否静音[$zh] |
success | success call back. |
failure | failed call back. |
- (void) fetchCloudStorageStateCompletion: | (void(^)(ThingSmartCloudState state)) | completion |
[^en] fetch cloud storage service state [$en]
[^zh] 获取云存储服务状态 [$zh]
completion | callback |
- (void) fetchCloudStorageStateCompletion: | (void(^)(ThingSmartCloudState state)) | completion |
[^en] fetch cloud storage service state [$en]
[^zh] 获取云存储服务状态 [$zh]
completion | callback |
+ (void) fetchSecretKeyWithDevId: | (NSString *) | devId | |
completion: | (ThingFetchSecretKeyCompletion) | completion | |
fetch secret key
devId | @completion return secret key or error. |
+ (void) fetchSecretKeyWithDevId: | (NSString *) | devId | |
completion: | (ThingFetchSecretKeyCompletion) | completion | |
fetch secret key
devId | @completion return secret key or error. |
- (NSArray *) getCloudUrlsWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
[^en] get cloud urls [$en]
[^zh] 获取云存储url数组 [$zh]
- (NSArray *) getCloudUrlsWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
[^en] get cloud urls [$en]
[^zh] 获取云存储url数组 [$zh]
- (NSArray *) getCloudUrlsWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] get cloud urls [$en]
[^zh] 获取云存储url数组 [$zh]
- (NSArray *) getCloudUrlsWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] get cloud urls [$en]
[^zh] 获取云存储url数组 [$zh]
- (instancetype) initWithDeviceId: | (NSString *) | devId |
- (instancetype) initWithDeviceId: | (NSString *) | devId |
- (BOOL) isMuted |
[^en] get mute state. [$en]
[^zh] 获取静音状态 [$zh]
- (BOOL) isMuted |
[^en] get mute state. [$en]
[^zh] 获取静音状态 [$zh]
+ (BOOL) isSupportCloudStorage: | (NSString *) | devId |
whether to support cloud storage
devId | get from DeviceModel. Please obtain the device information first |
+ (BOOL) isSupportCloudStorage: | (NSString *) | devId |
whether to support cloud storage
devId | get from DeviceModel. Please obtain the device information first |
- (void) loadCloudData: | (void(^)(ThingSmartCloudState state)) | complete |
[^en] load cloud data [$en]
[^zh] 加载云端数据 [$zh]
complete | callback |
- (void) loadCloudData: | (void(^)(ThingSmartCloudState state)) | complete |
[^en] load cloud data [$en]
[^zh] 加载云端数据 [$zh]
complete | callback |
- (int) pauseDownloadCloudVideo |
[^en] pause cloud video download task [$en] [^zh] 暂停云存储视频下载 [$zh]
- (int) pauseDownloadCloudVideo |
[^en] pause cloud video download task [$en] [^zh] 暂停云存储视频下载 [$zh]
- (int) pausePlayCloudVideo |
[^en] pause play [$en]
[^zh] 暂停播放 [$zh]
- (int) pausePlayCloudVideo |
[^en] pause play [$en]
[^zh] 暂停播放 [$zh]
- (int) playAudioMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | nStartTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onFinish: | ("Use - instead") | __deprecated_msg[ThingSmartCameraMessageMediaPlayer playMessage:attachmentType:success:failure:finished:] | |
[^en] play encrypt audio in detect message [$en]
[^zh] 在侦测消息中播放加密音频 [$zh]
url | [^en]audio path[$en] [^zh]音频路径[$zh] |
nStartTime | [^en]Start time to play[$en] [^zh]开始播放时间[$zh] |
encryptKey | [^en]encrypt key[$en] [^zh]加密key[$zh] |
callback | start callback |
finihedCallBack | finish callback |
- (int) playAudioMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | nStartTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onFinish: | ("Use - instead") | __deprecated_msg[ThingSmartCameraMessageMediaPlayer playMessage:attachmentType:success:failure:finished:] | |
[^en] play encrypt audio in detect message [$en]
[^zh] 在侦测消息中播放加密音频 [$zh]
url | [^en]audio path[$en] [^zh]音频路径[$zh] |
nStartTime | [^en]Start time to play[$en] [^zh]开始播放时间[$zh] |
encryptKey | [^en]encrypt key[$en] [^zh]加密key[$zh] |
callback | start callback |
finihedCallBack | finish callback |
- (int) playCloudVideoWithStartTime: | (long) | startTime | |
endTime: | (long) | endTime | |
isEvent: | (BOOL) | isEvent | |
onResponse: | (void(^)(int errCode)) | responseCallback | |
onFinished: | (void(^)(int errCode)) | finishedCallback | |
[^en] play cloud video [$en]
[^zh] 播放云端视频 [$zh]
startTime | [^en]start time[$en] [^zh]开始时间[$zh] |
endTime | [^en]end time. cloud video will auto continue util the last video finished in the day[$en] [^zh]结束时间,云视频将会自动继续播放直到当天最后一个视频[$zh] |
isEvent | [^en]YES is the time event, NO is the time line video.[$en] [^zh]YES 是时间片事件,NO是时间轴视频[$zh] |
responseCallback | [^en]errCode 0 is success, negative is failed.[$en] [^zh]errorCode 0 是成功,负数为失败[$zh] |
finishedCallback | [^en]video is finished[$en] [^zh]视频已经结束[$zh] |
- (int) playCloudVideoWithStartTime: | (long) | startTime | |
endTime: | (long) | endTime | |
isEvent: | (BOOL) | isEvent | |
onResponse: | (void(^)(int errCode)) | responseCallback | |
onFinished: | (void(^)(int errCode)) | finishedCallback | |
[^en] play cloud video [$en]
[^zh] 播放云端视频 [$zh]
startTime | [^en]start time[$en] [^zh]开始时间[$zh] |
endTime | [^en]end time. cloud video will auto continue util the last video finished in the day[$en] [^zh]结束时间,云视频将会自动继续播放直到当天最后一个视频[$zh] |
isEvent | [^en]YES is the time event, NO is the time line video.[$en] [^zh]YES 是时间片事件,NO是时间轴视频[$zh] |
responseCallback | [^en]errCode 0 is success, negative is failed.[$en] [^zh]errorCode 0 是成功,负数为失败[$zh] |
finishedCallback | [^en]video is finished[$en] [^zh]视频已经结束[$zh] |
- (int) playVideoMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | nStartTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onFinish: | ("Use - instead") | __deprecated_msg[ThingSmartCameraMessageMediaPlayer playMessage:attachmentType:success:failure:finished:] | |
[^en] play encrypt video in detect message [$en]
[^zh] 在侦测消息追踪播放加密视频 [$zh]
url | [^en]video path[$en] [^zh]视频路径[$zh] |
nStartTime | [^en]Start time to play[$en] [^zh]开始播放的时间[$zh] |
encryptKey | [^en]encrypt key[$en] [^zh]加密key[$zh] |
callback | start callback |
finihedCallBack | finish callback |
- (int) playVideoMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | nStartTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onFinish: | ("Use - instead") | __deprecated_msg[ThingSmartCameraMessageMediaPlayer playMessage:attachmentType:success:failure:finished:] | |
[^en] play encrypt video in detect message [$en]
[^zh] 在侦测消息追踪播放加密视频 [$zh]
url | [^en]video path[$en] [^zh]视频路径[$zh] |
nStartTime | [^en]Start time to play[$en] [^zh]开始播放的时间[$zh] |
encryptKey | [^en]encrypt key[$en] [^zh]加密key[$zh] |
callback | start callback |
finihedCallBack | finish callback |
- (void) queryAIDetectConfigSuccess: | (void(^)(ThingCameraAIDetectConfigModel *model)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
查下设备ai配置信息
- (void) queryAIDetectConfigSuccess: | (void(^)(ThingCameraAIDetectConfigModel *model)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
查下设备ai配置信息
- (void) reLoadCloudDays: | (void(^)(NSArray< ThingSmartCloudDayModel * > *cloudDays)) | complete |
[^en] reload cloud days [$en]
[^zh] 重新加载云端日期数据 [$zh]
complete | callback |
- (void) reLoadCloudDays: | (void(^)(NSArray< ThingSmartCloudDayModel * > *cloudDays)) | complete |
[^en] reload cloud days [$en]
[^zh] 重新加载云端日期数据 [$zh]
complete | callback |
- (int) resumeDownloadCloudVideo: | (DownloadFailure) | failure |
[^en] resume cloud video download task [$en] [^zh] 恢复云存储视频下载 [$zh]
failure | [^en] resume success callback. [$en] [^zh] 恢复下载失败回调。 [$zh] |
- (int) resumeDownloadCloudVideo: | (DownloadFailure) | failure |
[^en] resume cloud video download task [$en] [^zh] 恢复云存储视频下载 [$zh]
failure | [^en] resume success callback. [$en] [^zh] 恢复下载失败回调。 [$zh] |
- (int) resumePlayCloudVideo |
[^en] resume play [$en]
[^zh] 恢复播放 [$zh]
- (int) resumePlayCloudVideo |
[^en] resume play [$en]
[^zh] 恢复播放 [$zh]
- (int) setCloudVideoPlaySpeed: | (ThingSmartCameraPlayBackSpeed) | speed |
[^en] Set cloud storage multiplier playback speed[$en] [^zh] 设置云存储倍速播放速率 [$zh]
speed | [^en] multiplier playback speed [$en] [^zh] 倍速播放速率 [$zh] |
- (int) setCloudVideoPlaySpeed: | (ThingSmartCameraPlayBackSpeed) | speed |
[^en] Set cloud storage multiplier playback speed[$en] [^zh] 设置云存储倍速播放速率 [$zh]
speed | [^en] multiplier playback speed [$en] [^zh] 倍速播放速率 [$zh] |
- (int) setVideoDirection: | (ThingSmartVideoRotateDirection) | direction | |
horizontalMirror: | (BOOL) | horizontalMirror | |
Set the video rotation.
- (int) setVideoDirection: | (ThingSmartVideoRotateDirection) | direction | |
horizontalMirror: | (BOOL) | horizontalMirror | |
Set the video rotation.
- (int) setVideoDirection: | (ThingSmartVideoRotateDirection) | direction | |
mirror: | (ThingSmartVideoMirrorDirection) | mirror | |
Set the video rotation and mirror.
- (int) setVideoDirection: | (ThingSmartVideoRotateDirection) | direction | |
mirror: | (ThingSmartVideoMirrorDirection) | mirror | |
Set the video rotation and mirror.
- (UIImage *) snapShoot |
[^en] get a screenshot of th video and save it to photo album. photo asset collection name is bundle name, "[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]". [$en]
[^zh] 获取视频的截图并存储到系统相册。照片 asset collection 名称为 bundle name,"[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]" [$zh]
- (UIImage *) snapShoot |
[^en] get a screenshot of th video and save it to photo album. photo asset collection name is bundle name, "[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]". [$en]
[^zh] 获取视频的截图并存储到系统相册。照片 asset collection 名称为 bundle name,"[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]" [$zh]
- (UIImage *) snapShootAtPath: | (NSString *) | filePath | |
thumbnilPath: | (NSString *) | thumbnilPath | |
[^en] get a screenshot of the video and save it to file path. if you do not need a thumbnil, set thumbnilPath nil. [$en]
[^zh] 获取视频的截图并存储到指定的目录,如果不需要缩略图,设置 thumbnilPath 为nil [$zh]
- (UIImage *) snapShootAtPath: | (NSString *) | filePath | |
thumbnilPath: | (NSString *) | thumbnilPath | |
[^en] get a screenshot of the video and save it to file path. if you do not need a thumbnil, set thumbnilPath nil. [$en]
[^zh] 获取视频的截图并存储到指定的目录,如果不需要缩略图,设置 thumbnilPath 为nil [$zh]
- (int) startRecord |
[^en] start record. [$en]
[^zh] 开始录制 [$zh]
- (int) startRecord |
[^en] start record. [$en]
[^zh] 开始录制 [$zh]
- (int) startRecordAtPath: | (NSString *) | filePath |
[^en] start record and the video will save to the file path. [$en]
[^zh] 开始录制,并且视频将会存到filepath [$zh]
filePath | [^en]save path[$en] [^zh]保存路径[$zh] |
- (int) startRecordAtPath: | (NSString *) | filePath |
[^en] start record and the video will save to the file path. [$en]
[^zh] 开始录制,并且视频将会存到filepath [$zh]
filePath | [^en]save path[$en] [^zh]保存路径[$zh] |
- (int) stopPlayCloudVideo |
[^en] stop play [$en]
[^zh] 停止播放 [$zh]
- (int) stopPlayCloudVideo |
[^en] stop play [$en]
[^zh] 停止播放 [$zh]
- (int) stopRecord |
[^en] stop record. video will save to photo album. photo asset collection name is bundle name, "[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]". [$en]
[^zh] 停止录制,视频将会存在系统相册。相片asset collection名称为 bundle name,"[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]" [$zh]
- (int) stopRecord |
[^en] stop record. video will save to photo album. photo asset collection name is bundle name, "[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]". [$en]
[^zh] 停止录制,视频将会存在系统相册。相片asset collection名称为 bundle name,"[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]" [$zh]
- (void) timeEventsWithCloudDay: | (ThingSmartCloudDayModel *) | cloudDay | |
offset: | (int) | offset | |
limit: | (int) | limit | |
aiCodes: | (NSString *) | aiCodes | |
success: | (void(^)(NSArray< ThingSmartCloudTimeEventModel * > *timeEvents)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] get time event of the day [$en]
[^zh] 获取某天的时间片数据 [$zh]
cloudDay | [^en]target day[$en] [^zh]目标日期[$zh] |
offset | [^en]event index offset[$en] [^zh]事件索引偏移量[$zh] |
limit | [^en]event count limit, -1 is get all[$en] [^zh]事件数量限制,-1代表所有[$zh] |
aiCodes | ai 类型 |
success | success callback |
failure | failure callback |
- (void) timeEventsWithCloudDay: | (ThingSmartCloudDayModel *) | cloudDay | |
offset: | (int) | offset | |
limit: | (int) | limit | |
aiCodes: | (NSString *) | aiCodes | |
success: | (void(^)(NSArray< ThingSmartCloudTimeEventModel * > *timeEvents)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] get time event of the day [$en]
[^zh] 获取某天的时间片数据 [$zh]
cloudDay | [^en]target day[$en] [^zh]目标日期[$zh] |
offset | [^en]event index offset[$en] [^zh]事件索引偏移量[$zh] |
limit | [^en]event count limit, -1 is get all[$en] [^zh]事件数量限制,-1代表所有[$zh] |
aiCodes | ai 类型 |
success | success callback |
failure | failure callback |
- (void) timeEventsWithCloudDay: | (ThingSmartCloudDayModel *) | cloudDay | |
offset: | (int) | offset | |
limit: | (int) | limit | |
success: | (void(^)(NSArray< ThingSmartCloudTimeEventModel * > *timeEvents)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] get time event of the day [$en]
[^zh] 获取某天的时间片数据 [$zh]
cloudDay | [^en]target day[$en] [^zh]目标日期[$zh] |
offset | [^en]event index offset[$en] [^zh]事件索引偏移量[$zh] |
limit | [^en]event count limit, -1 is get all[$en] [^zh]事件数量限制,-1代表所有[$zh] |
success | success callback |
failure | failure callback |
- (void) timeEventsWithCloudDay: | (ThingSmartCloudDayModel *) | cloudDay | |
offset: | (int) | offset | |
limit: | (int) | limit | |
success: | (void(^)(NSArray< ThingSmartCloudTimeEventModel * > *timeEvents)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] get time event of the day [$en]
[^zh] 获取某天的时间片数据 [$zh]
cloudDay | [^en]target day[$en] [^zh]目标日期[$zh] |
offset | [^en]event index offset[$en] [^zh]事件索引偏移量[$zh] |
limit | [^en]event count limit, -1 is get all[$en] [^zh]事件数量限制,-1代表所有[$zh] |
success | success callback |
failure | failure callback |
- (void) timeLineWithCloudDay: | (ThingSmartCloudDayModel *) | cloudDay | |
success: | (void(^)(NSArray< ThingSmartCloudTimePieceModel * > *timePieces)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] get time line data of the day [$en]
[^zh] 获取某天的时间轴数据 [$zh]
cloudDay | [^en]target day[$en] [^zh]目标日期[$zh] |
success | success callback |
failure | failure callback |
- (void) timeLineWithCloudDay: | (ThingSmartCloudDayModel *) | cloudDay | |
success: | (void(^)(NSArray< ThingSmartCloudTimePieceModel * > *timePieces)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] get time line data of the day [$en]
[^zh] 获取某天的时间轴数据 [$zh]
cloudDay | [^en]target day[$en] [^zh]目标日期[$zh] |
success | success callback |
failure | failure callback |
- (UIView< ThingSmartVideoViewType > *) videoView |
[^en] video frame render view [$en]
[^zh] 视频帧渲染视图 [$zh]
- (UIView< ThingSmartVideoViewType > *) videoView |
[^en] video frame render view [$en]
[^zh] 视频帧渲染视图 [$zh]
|
readwritenonatomicstrong |
Definition at line 70 of file ThingSmartCloudManager.h.
|
readwritenonatomicassign |
Definition at line 62 of file ThingSmartCloudManager.h.
|
readnonatomicstrong |
Definition at line 64 of file ThingSmartCloudManager.h.
|
readwritenonatomicweak |
Definition at line 66 of file ThingSmartCloudManager.h.
|
readwritenonatomicstrong |
Definition at line 60 of file ThingSmartCloudManager.h.
|
readwritenonatomicassign |
[^en] Enable image encryption, which is disabled by default. After opening, the pictures carried in the event model will be encrypted, and you need to use the ThingEncryptImage component to display or download the pictures. [$en]
[^zh] 开启图片加密,默认为关闭。打开后,云存储事件中携带的图片会加密,需要使用 ThingEncryptImage 组件显示或者下载图片。 [$zh]
Definition at line 85 of file ThingSmartCloudManager.h.
|
readwritenonatomicstrong |
Definition at line 68 of file ThingSmartCloudManager.h.
|
readwritenonatomicstrong |
Definition at line 72 of file ThingSmartCloudManager.h.
|
readwritenonatomicassign |
Definition at line 74 of file ThingSmartCloudManager.h.