NIMSDK-iOS
载入中...
搜索中...
未找到
V2NIMDownloadMessageAttachmentParams.h
浏览该文件的文档.
1//
2// V2NIMDownloadMessageAttachmentParams.h
3// NIMSDK
4//
5// Created by 陈吉力 on 2024/6/12.
6// Copyright © 2024 Netease. All rights reserved.
7//
8#import <Foundation/Foundation.h>
11
12NS_ASSUME_NONNULL_BEGIN
14/**
15 * 要下载的附件
16 */
17@property (nonatomic,strong,nonnull) V2NIMMessageAttachment *attachment;
18/**
19 * 下载附件的类型,如原始文件、缩略图、视频封面
20 */
21@property (nonatomic,assign) V2NIMDownloadAttachmentType type;
22/**
23 * 缩略图大小或视频封面大小
24 * 如果下载的是缩略图或者视频封面,通过该参数指定缩略图大小或视频封面大小
25 */
26@property (nonatomic,strong,nullable) V2NIMSize *thumbSize;
27/**
28 * 消息的端侧ID
29 * 可选参数,如果指定了该参数将下载完成后的本地附件保存路径更新到消息数据库中,下一次查询时将直接返回对应的路径
30 */
31@property (nonatomic,copy,nullable) NSString *messageClientId;
32/**
33 * 附件保存路径,如未指定 SDK 将下载到登录用户缓存目录,如指定该参数则以指定的路径为准
34 */
35@property (nonatomic,copy,nullable) NSString *saveAs;
36
37- (instancetype)initWithAttachment:(V2NIMMessageAttachment *)attachment;
38@end
39NS_ASSUME_NONNULL_END
V2NIMDownloadAttachmentType
Definition: V2NIMStorageServiceProtocol.h:23
Definition: V2NIMDownloadMessageAttachmentParams.h:14
V2NIMSize * thumbSize
Definition: V2NIMDownloadMessageAttachmentParams.h:26
NSString * saveAs
Definition: V2NIMDownloadMessageAttachmentParams.h:35
V2NIMMessageAttachment * attachment
Definition: V2NIMDownloadMessageAttachmentParams.h:17
V2NIMDownloadAttachmentType type
Definition: V2NIMDownloadMessageAttachmentParams.h:21
NSString * messageClientId
Definition: V2NIMDownloadMessageAttachmentParams.h:31
消息附件协议
Definition: V2NIMMessageAttachment.h:20
Definition: V2NIMSize.h:14