SBDFileMessageParams Class Reference

Inherits from SBDBaseMessageParams : NSObject
Conforms to NSCopying
Declared in SBDFileMessageParams.h

Overview

The SBDFileMessageParams class is used to send a file message in SBDBaseChannel. This is a child class of SBDBaseMessageParams.

  file

Binary file data. file and fileUrl cannot be set together.

@property (strong, nonatomic, nullable) NSData *file

Availability

3.0.90

Declared In

SBDFileMessageParams.h

  fileUrl

File URL. file and fileUrl cannot be set together.

@property (copy, nonatomic, nullable) NSString *fileUrl

Availability

3.0.90

Declared In

SBDFileMessageParams.h

  thumbnailSizes

Thumbnail sizes. This parameter is the array of SBDThumbnailSize instance and works for image file only.

@property (copy, nonatomic, nullable) NSArray<SBDThumbnailSize*> *thumbnailSizes

Availability

3.0.90

Declared In

SBDFileMessageParams.h

  fileName

File name.

@property (copy, nonatomic, nullable) NSString *fileName

Availability

3.0.90

Declared In

SBDFileMessageParams.h

  mimeType

File MIME type.

@property (copy, nonatomic, nullable) NSString *mimeType

Availability

3.0.90

Declared In

SBDFileMessageParams.h

  fileSize

File size.

@property (nonatomic) NSUInteger fileSize

Availability

3.0.90

Declared In

SBDFileMessageParams.h

– init

Don’t use this initializer. Initializes an instance of a file message params.

- (nonnull instancetype)init

Return Value

nil as this method is unavailable.

Availability

3.0.90

Declared In

SBDFileMessageParams.h

– initWithFile:

Initializes an instance of a file message params with binary file.

- (nullable instancetype)initWithFile:(nonnull NSData *)file

Parameters

file

A Biniary file to be sent.

Return Value

An initialized file message params, used to send file message.

Availability

3.0.90

Declared In

SBDFileMessageParams.h

– initWithFileUrl:

Initializes an instance of a file message params with file url.

- (nullable instancetype)initWithFileUrl:(nonnull NSString *)fileUrl

Parameters

fileUrl

The file url to be sent.

Return Value

An initialized file message params, used to send file message.

Availability

3.0.90

Declared In

SBDFileMessageParams.h