#import <ThingSmartCameraMessage.h>
Definition at line 12 of file ThingSmartCameraMessage.h.
◆ cancelDownloadMessageAttachment: [1/2]
- (void) cancelDownloadMessageAttachment: |
|
(ThingCameraMessageAttachmentType) |
type |
|
[^en] cancel download [$en]
[^zh] 取消下载 [$zh]
◆ cancelDownloadMessageAttachment: [2/2]
- (void) cancelDownloadMessageAttachment: |
|
(ThingCameraMessageAttachmentType) |
type |
|
[^en] cancel download [$en]
[^zh] 取消下载 [$zh]
◆ getLatestMessageImage:success:failure: [1/2]
- (void) getLatestMessageImage: |
|
(NSString *) |
devIds |
success: |
|
(void(^)(NSArray< NSDictionary * > *result)) |
success |
failure: |
|
(void(^)(NSError *error)) |
failure |
|
|
| |
获取设备最新的封面图 get camera cover image
- Parameters:
- devIds: 设备id列表(json格式) device ids [json]
- success: 成功回调 success callback
- failure: 失败回调 failure callback
◆ getLatestMessageImage:success:failure: [2/2]
- (void) getLatestMessageImage: |
|
(NSString *) |
devIds |
success: |
|
(void(^)(NSArray< NSDictionary * > *result)) |
success |
failure: |
|
(void(^)(NSError *error)) |
failure |
|
|
| |
获取设备最新的封面图 get camera cover image
- Parameters:
- devIds: 设备id列表(json格式) device ids [json]
- success: 成功回调 success callback
- failure: 失败回调 failure callback
◆ getMessageSchemes:failure: [1/2]
[^en] get message schemes list [$en]
[^zh] 获取消息分类列表 [$zh]
- Parameters
-
success | callback |
failure | callback |
◆ getMessageSchemes:failure: [2/2]
[^en] get message schemes list [$en]
[^zh] 获取消息分类列表 [$zh]
- Parameters
-
success | callback |
failure | callback |
◆ initWithDeviceId:timeZone: [1/2]
- (instancetype) initWithDeviceId: |
|
(NSString *) |
devId |
timeZone: |
|
(NSTimeZone *) |
timeZone |
|
|
| |
◆ initWithDeviceId:timeZone: [2/2]
- (instancetype) initWithDeviceId: |
|
(NSString *) |
devId |
timeZone: |
|
(NSTimeZone *) |
timeZone |
|
|
| |
◆ messageDaysForYear:month:success:failure: [1/2]
- (void) messageDaysForYear: |
|
(NSInteger) |
year |
month: |
|
(NSInteger) |
month |
success: |
|
(void(^)(NSArray< NSString * > *result)) |
success |
failure: |
|
(void(^)(NSError *error)) |
failure |
|
|
| |
[^en] get day list which has messages [$en]
[^zh] 获取有消息的日期 [$zh]
- Parameters
-
year | [^en]year[$en] [^zh]年[$zh] |
month | [^en]month[$en] [^zh]月[$zh] |
success | callback |
failure | callback |
◆ messageDaysForYear:month:success:failure: [2/2]
- (void) messageDaysForYear: |
|
(NSInteger) |
year |
month: |
|
(NSInteger) |
month |
success: |
|
(void(^)(NSArray< NSString * > *result)) |
success |
failure: |
|
(void(^)(NSError *error)) |
failure |
|
|
| |
[^en] get day list which has messages [$en]
[^zh] 获取有消息的日期 [$zh]
- Parameters
-
year | [^en]year[$en] [^zh]年[$zh] |
month | [^en]month[$en] [^zh]月[$zh] |
success | callback |
failure | callback |
◆ messagesWithMessageCodes:offset:limit:startTime:endTime:customParams:success:failure: [1/2]
- (void) messagesWithMessageCodes: |
|
(NSArray *) |
msgCodes |
offset: |
|
(NSInteger) |
offset |
limit: |
|
(NSInteger) |
limit |
startTime: |
|
(NSInteger) |
startTime |
endTime: |
|
(NSInteger) |
endTime |
customParams: |
|
(NSDictionary *) |
customParams |
success: |
|
(void(^)(NSArray< ThingSmartCameraMessageModel * > *result)) |
success |
failure: |
|
(void(^)(NSError *error)) |
failure |
|
|
| |
[^en] get message list new [$en]
[^zh] 新获取消息列表 [$zh]
- Parameters
-
msgCodes | msgCodes |
offset | [^en]offset[$en] [^zh]偏移量[$zh] |
limit | [^en]page size[$en] [^zh]页大小[$zh] |
startTime | [^en]pass 0 for no time limit[$en] [^zh]传入0代表没有时间限制[$zh] |
endTime | [^en]end time[$en] [^zh]结束时间[$zh] |
customParams | [^en]custom params[$en] [^zh]自定义参数[$zh] |
success | callback |
failure | callback |
◆ messagesWithMessageCodes:offset:limit:startTime:endTime:customParams:success:failure: [2/2]
- (void) messagesWithMessageCodes: |
|
(NSArray *) |
msgCodes |
offset: |
|
(NSInteger) |
offset |
limit: |
|
(NSInteger) |
limit |
startTime: |
|
(NSInteger) |
startTime |
endTime: |
|
(NSInteger) |
endTime |
customParams: |
|
(NSDictionary *) |
customParams |
success: |
|
(void(^)(NSArray< ThingSmartCameraMessageModel * > *result)) |
success |
failure: |
|
(void(^)(NSError *error)) |
failure |
|
|
| |
[^en] get message list new [$en]
[^zh] 新获取消息列表 [$zh]
- Parameters
-
msgCodes | msgCodes |
offset | [^en]offset[$en] [^zh]偏移量[$zh] |
limit | [^en]page size[$en] [^zh]页大小[$zh] |
startTime | [^en]pass 0 for no time limit[$en] [^zh]传入0代表没有时间限制[$zh] |
endTime | [^en]end time[$en] [^zh]结束时间[$zh] |
customParams | [^en]custom params[$en] [^zh]自定义参数[$zh] |
success | callback |
failure | callback |
◆ messagesWithMessageCodes:Offset:limit:startTime:endTime:success:failure: [1/2]
- (void) messagesWithMessageCodes: |
|
(NSArray *) |
msgCodes |
Offset: |
|
(NSInteger) |
offset |
limit: |
|
(NSInteger) |
limit |
startTime: |
|
(NSInteger) |
startTime |
endTime: |
|
(NSInteger) |
endTime |
success: |
|
(void(^)(NSArray< ThingSmartCameraMessageModel * > *result)) |
success |
failure: |
|
(void(^)(NSError *error)) |
failure |
|
|
| |
[^en] get message list [$en]
[^zh] 获取消息列表 [$zh]
- Parameters
-
msgCodes | msgCodes |
offset | [^en]offset[$en] [^zh]偏移量[$zh] |
limit | [^en]page size[$en] [^zh]页大小[$zh] |
startTime | [^en]pass 0 for no time limit[$en] [^zh]传入0代表没有时间限制[$zh] |
endTime | [^en]end time[$en] [^zh]结束时间[$zh] |
success | callback |
failure | callback |
◆ messagesWithMessageCodes:Offset:limit:startTime:endTime:success:failure: [2/2]
- (void) messagesWithMessageCodes: |
|
(NSArray *) |
msgCodes |
Offset: |
|
(NSInteger) |
offset |
limit: |
|
(NSInteger) |
limit |
startTime: |
|
(NSInteger) |
startTime |
endTime: |
|
(NSInteger) |
endTime |
success: |
|
(void(^)(NSArray< ThingSmartCameraMessageModel * > *result)) |
success |
failure: |
|
(void(^)(NSError *error)) |
failure |
|
|
| |
[^en] get message list [$en]
[^zh] 获取消息列表 [$zh]
- Parameters
-
msgCodes | msgCodes |
offset | [^en]offset[$en] [^zh]偏移量[$zh] |
limit | [^en]page size[$en] [^zh]页大小[$zh] |
startTime | [^en]pass 0 for no time limit[$en] [^zh]传入0代表没有时间限制[$zh] |
endTime | [^en]end time[$en] [^zh]结束时间[$zh] |
success | callback |
failure | callback |
◆ removeMessagesWithMessageIds:success:failure: [1/2]
- (void) removeMessagesWithMessageIds: |
|
(NSArray *) |
msgIds |
success: |
|
(void(^)(void)) |
success |
failure: |
|
(void(^)(NSError *)) |
failure |
|
|
| |
[^en] remove messages by message id list [$en]
[^zh] 删除消息 [$zh]
- Parameters
-
msgIds | [^zh] 需要删除的消息的id数组 [$zh] [^en] message id array whitch need removed [$en] |
success | callback |
failure | callback |
◆ removeMessagesWithMessageIds:success:failure: [2/2]
- (void) removeMessagesWithMessageIds: |
|
(NSArray *) |
msgIds |
success: |
|
(void(^)(void)) |
success |
failure: |
|
(void(^)(NSError *)) |
failure |
|
|
| |
[^en] remove messages by message id list [$en]
[^zh] 删除消息 [$zh]
- Parameters
-
msgIds | [^zh] 需要删除的消息的id数组 [$zh] [^en] message id array whitch need removed [$en] |
success | callback |
failure | callback |
◆ startDownloadMessageAttachmentWithMeesageModel:attachType:filePath:success:progress:failure: [1/2]
- (void) startDownloadMessageAttachmentWithMeesageModel: |
|
(ThingSmartCameraMessageModel *) |
messageModel |
attachType: |
|
(ThingCameraMessageAttachmentType) |
type |
filePath: |
|
(NSString *) |
filePath |
success: |
|
(void(^)(void)) |
successCallback |
progress: |
|
(void(^)(int progress)) |
progressCallBack |
failure: |
|
(void(^)(int errCode)) |
failureCallBack |
|
|
| |
[^en] start download attachment of message [$en]
[^zh] 开始下载消息中的附件 [$zh]
- Parameters
-
messageModel | [^en]message model[$en] [^zh]消息模型[$zh] |
type | [^en]attachment type[$en] [^zh]附件类型[$zh] |
filePath | [^en]file path to save attachment[$en] [^zh]附件保存的文件路径[$zh] |
successCallback | [^en]success callbak[$en] [^zh]成功回调[$zh] |
progressCallBack | [^en]progress callbak[$en] [^zh]进度回调[$zh] |
failureCallBack | [^en]failure callbak[$en] [^zh]失败回调[$zh] |
◆ startDownloadMessageAttachmentWithMeesageModel:attachType:filePath:success:progress:failure: [2/2]
- (void) startDownloadMessageAttachmentWithMeesageModel: |
|
(ThingSmartCameraMessageModel *) |
messageModel |
attachType: |
|
(ThingCameraMessageAttachmentType) |
type |
filePath: |
|
(NSString *) |
filePath |
success: |
|
(void(^)(void)) |
successCallback |
progress: |
|
(void(^)(int progress)) |
progressCallBack |
failure: |
|
(void(^)(int errCode)) |
failureCallBack |
|
|
| |
[^en] start download attachment of message [$en]
[^zh] 开始下载消息中的附件 [$zh]
- Parameters
-
messageModel | [^en]message model[$en] [^zh]消息模型[$zh] |
type | [^en]attachment type[$en] [^zh]附件类型[$zh] |
filePath | [^en]file path to save attachment[$en] [^zh]附件保存的文件路径[$zh] |
successCallback | [^en]success callbak[$en] [^zh]成功回调[$zh] |
progressCallBack | [^en]progress callbak[$en] [^zh]进度回调[$zh] |
failureCallBack | [^en]failure callbak[$en] [^zh]失败回调[$zh] |
◆ startDownloadMessageAttachmentWithUrl:attachType:filePath:rotateDirection:success:progress:failure: [1/2]
- (void) startDownloadMessageAttachmentWithUrl: |
|
(NSString *) |
attachPath |
attachType: |
|
(ThingCameraMessageAttachmentType) |
type |
filePath: |
|
(NSString *) |
filePath |
rotateDirection: |
|
(ThingSmartVideoRotateDirection) |
rotateDirection |
success: |
|
(void(^)(void)) |
successCallback |
progress: |
|
(void(^)(int)) |
progressCallBack |
failure: |
|
(void(^)(int)) |
failureCallBack |
|
|
| |
◆ startDownloadMessageAttachmentWithUrl:attachType:filePath:rotateDirection:success:progress:failure: [2/2]
- (void) startDownloadMessageAttachmentWithUrl: |
|
(NSString *) |
attachPath |
attachType: |
|
(ThingCameraMessageAttachmentType) |
type |
filePath: |
|
(NSString *) |
filePath |
rotateDirection: |
|
(ThingSmartVideoRotateDirection) |
rotateDirection |
success: |
|
(void(^)(void)) |
successCallback |
progress: |
|
(void(^)(int)) |
progressCallBack |
failure: |
|
(void(^)(int)) |
failureCallBack |
|
|
| |
◆ startDownloadMessageAttachmentWithUrl:attachType:filePath:success:progress:failure: [1/2]
- (void) startDownloadMessageAttachmentWithUrl: |
|
(NSString *) |
attachPath |
attachType: |
|
(ThingCameraMessageAttachmentType) |
type |
filePath: |
|
(NSString *) |
filePath |
success: |
|
(void(^)(void)) |
successCallback |
progress: |
|
(void(^)(int progress)) |
progressCallBack |
failure: |
|
(void(^)(int errCode)) |
failureCallBack |
|
|
| |
[^en] start download attachment of message [$en]
[^zh] 开始下载消息中的附件 [$zh]
- Parameters
-
attachPath | [^en]attachment path[$en] [^zh]附件地址[$zh] |
type | [^en]attachment type[$en] [^zh]附件类型[$zh] |
filePath | [^en]file path to save attachment[$en] [^zh]附件保存的文件路径[$zh] |
successCallback | [^en]success callbak[$en] [^zh]成功回调[$zh] |
progressCallBack | [^en]progress callbak[$en] [^zh]进度回调[$zh] |
failureCallBack | [^en]failure callbak[$en] [^zh]失败回调[$zh] |
◆ startDownloadMessageAttachmentWithUrl:attachType:filePath:success:progress:failure: [2/2]
- (void) startDownloadMessageAttachmentWithUrl: |
|
(NSString *) |
attachPath |
attachType: |
|
(ThingCameraMessageAttachmentType) |
type |
filePath: |
|
(NSString *) |
filePath |
success: |
|
(void(^)(void)) |
successCallback |
progress: |
|
(void(^)(int progress)) |
progressCallBack |
failure: |
|
(void(^)(int errCode)) |
failureCallBack |
|
|
| |
[^en] start download attachment of message [$en]
[^zh] 开始下载消息中的附件 [$zh]
- Parameters
-
attachPath | [^en]attachment path[$en] [^zh]附件地址[$zh] |
type | [^en]attachment type[$en] [^zh]附件类型[$zh] |
filePath | [^en]file path to save attachment[$en] [^zh]附件保存的文件路径[$zh] |
successCallback | [^en]success callbak[$en] [^zh]成功回调[$zh] |
progressCallBack | [^en]progress callbak[$en] [^zh]进度回调[$zh] |
failureCallBack | [^en]failure callbak[$en] [^zh]失败回调[$zh] |
◆ startDownloadMessageImageOrVideoWithUrl:attachType:filePath:rotateDirection:mirrorDirection:success:progress:failure: [1/2]
- (void) startDownloadMessageImageOrVideoWithUrl: |
|
(NSString *) |
attachPath |
attachType: |
|
(ThingCameraMessageAttachmentType) |
type |
filePath: |
|
(NSString *) |
filePath |
rotateDirection: |
|
(ThingSmartVideoRotateDirection) |
rotateDirection |
mirrorDirection: |
|
(ThingSmartVideoMirrorDirection) |
mirrorDirection |
success: |
|
(void(^)(void)) |
successCallback |
progress: |
|
(void(^)(int)) |
progressCallBack |
failure: |
|
(void(^)(int)) |
failureCallBack |
|
|
| |
◆ startDownloadMessageImageOrVideoWithUrl:attachType:filePath:rotateDirection:mirrorDirection:success:progress:failure: [2/2]
- (void) startDownloadMessageImageOrVideoWithUrl: |
|
(NSString *) |
attachPath |
attachType: |
|
(ThingCameraMessageAttachmentType) |
type |
filePath: |
|
(NSString *) |
filePath |
rotateDirection: |
|
(ThingSmartVideoRotateDirection) |
rotateDirection |
mirrorDirection: |
|
(ThingSmartVideoMirrorDirection) |
mirrorDirection |
success: |
|
(void(^)(void)) |
successCallback |
progress: |
|
(void(^)(int)) |
progressCallBack |
failure: |
|
(void(^)(int)) |
failureCallBack |
|
|
| |
◆ enableEncryptedImage
- (BOOL) enableEncryptedImage |
|
readwritenonatomicassign |
[^en] Enable image encryption, which is disabled by default. After opening, the pictures carried in the message will be encrypted, and you need to use the ThingEncryptImage component to display or download the pictures. [$en]
[^zh] 开启图片加密,默认为关闭。打开后,消息中携带的图片会加密,需要使用 ThingEncryptImage 组件显示或者下载图片。 [$zh]
Definition at line 34 of file ThingSmartCameraMessage.h.
◆ timeZone
- (NSTimeZone *) timeZone |
|
readwritenonatomicstrong |
[^en] default is [NSTimeZone systemTimeZone] [$en]
[^zh] 默认为 [NSTimeZone systemTimeZone] [$zh]
Definition at line 23 of file ThingSmartCameraMessage.h.
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartCameraKit/Build/ThingSmartCameraKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartCameraKit.framework/Headers/ThingSmartCameraMessage.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartCameraKit/Build/ThingSmartCameraKit.xcframework/ios-arm64/ThingSmartCameraKit.framework/Headers/ThingSmartCameraMessage.h