SBDFileMessage Class Reference
Inherits from | SBDBaseMessage : NSObject |
---|---|
Declared in | SBDFileMessage.h |
Overview
The SBDFileMessage
class represents the file message which is generated by a user via sendFileMessageWithBinaryData:filename:type:size:data:completionHandler:
, sendFileMessageWithUrl:size:type:data:completionHandler:
or sendFileMessageWithBinaryData:filename:type:size:data:progressHandler:completionHandler:
in SBDBaseChannel
or Platform API. This class doesn’t include a binary data for the file. It is just a URL.
url
The file URL.
@property (strong, nonatomic, readonly) NSString *url
Declared In
SBDFileMessage.h
plainUrl
The file URL without the ekey.
@property (nonatomic, readonly, nullable) NSString *plainUrl
Availability
3.0.194
Declared In
SBDFileMessage.h
name
The name of file.
@property (strong, nonatomic, readonly) NSString *name
Declared In
SBDFileMessage.h
type
The type of file.
@property (strong, nonatomic, readonly) NSString *type
Declared In
SBDFileMessage.h
thumbnails
Image thumbnails.
@property (strong, nonatomic, readonly, nullable) NSArray<SBDThumbnail*> *thumbnails
Declared In
SBDFileMessage.h
requestState
Represents the dispatch state of the message.
If message is not dispatched completely to the Sendbird server, the value is SBDMessageRequestStatePending
.
If failed to send the message, the value is SBDMessageRequestStateFailed
.
And if success to send the message, the value is SBDMessageRequestStateSucceeded
. (Deprecated: 3.0.173. Use sendingStatus
instead.)
@property (assign, nonatomic, readonly, getter=getRequestState) SBDMessageRequestState requestState
Availability
3.0.141
Declared In
SBDFileMessage.h
+ buildWithFileUrl:name:size:type:data:requestId:sender:channel:customType:
Builds file message with the information which is releated to file. (Deprecated: in 3.0.116 DO NOT USE THIS METHOD.)
+ (NSMutableDictionary<NSString*,NSObject*> *)buildWithFileUrl:(NSString *_Nonnull)url name:(NSString *_Nullable)name size:(NSUInteger)size type:(NSString *_Nonnull)type data:(NSString *_Nullable)data requestId:(NSString *_Nullable)requestId sender:(SBDUser *_Nonnull)sender channel:(SBDBaseChannel *_Nonnull)channel customType:(NSString *_Nullable)customType
Parameters
url |
The file URL. |
---|---|
name |
The name of file. |
size |
The size of file. |
type |
The type of file. |
data |
The custom data for file. |
requestId |
Request ID for ACK. |
sender |
Sender of the message. |
channel |
The channel which the file message is sent. |
customType |
Custom message type. |
Return Value
File message object with request ID.
Declared In
SBDFileMessage.h
+ buildWithFileUrl:name:size:type:data:requestId:sender:channel:customType:thumbnailSizes:
Builds file message with the information which is releated to file. (Deprecated: in 3.0.116 DO NOT USE THIS METHOD.)
+ (NSMutableDictionary<NSString*,NSObject*> *)buildWithFileUrl:(NSString *_Nonnull)url name:(NSString *_Nullable)name size:(NSUInteger)size type:(NSString *_Nonnull)type data:(NSString *_Nullable)data requestId:(NSString *_Nullable)requestId sender:(SBDUser *_Nonnull)sender channel:(SBDBaseChannel *_Nonnull)channel customType:(NSString *_Nullable)customType thumbnailSizes:(NSArray<SBDThumbnailSize*> *_Nullable)thumbnailSizes
Parameters
url |
The file URL. |
---|---|
name |
The name of file. |
size |
The size of file. |
type |
The type of file. |
data |
The custom data for file. |
requestId |
Request ID for ACK. |
sender |
Sender of the message. |
channel |
The channel which the file message is sent. |
customType |
Custom message type. |
thumbnailSizes |
Thumbnail sizes to require. |
Return Value
File message object with request ID.
Declared In
SBDFileMessage.h
– getFileMessageParams
3.1.0
- (nullable SBDFileMessageParams *)getFileMessageParams
Availability
3.1.0
Declared In
SBDFileMessage.h