NIMFileObject Class Reference

Inherits from NSObject
Conforms to NIMMessageObject
Declared in NIMFileObject.h

Overview

File object

– initWithSourcePath:

File object initialization method (file path)

- (instancetype)initWithSourcePath:(NSString *)sourcePath

Parameters

sourcePath

file path

Return Value

instance of a file object

Discussion

File object initialization method (file path)

Declared In

NIMFileObject.h

– initWithData:extension:

File object initialization method (file data)

- (instancetype)initWithData:(NSData *)data extension:(NSString *)extension

Parameters

data

File data

extension

file extension

Return Value

instance of a file object

Discussion

File object initialization method (file data)

Declared In

NIMFileObject.h

– initWithSourcePath:scene:

File object initialization method (file path)

- (instancetype)initWithSourcePath:(NSString *)sourcePath scene:(NSString *)scene

Parameters

sourcePath

file path

scene

scenario type

Return Value

instance of a file object

Discussion

File object initialization method (file path)

Declared In

NIMFileObject.h

– initWithData:extension:scene:

File object initialization method (file data)

- (instancetype)initWithData:(NSData *)data extension:(NSString *)extension scene:(NSString *)scene

Parameters

data

File data

extension

file extension

scene

scenario type

Return Value

instance of a file object

Discussion

File object initialization method (file data)

Declared In

NIMFileObject.h

– setUploadURL:

Set a URL for uploaded resources

- (void)setUploadURL:(NSString *)urlString

Parameters

urlString

URL for an image

Discussion

Set a URL for uploaded resources

Declared In

NIMFileObject.h

  displayName

Display name

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

Discussion

Display name

Declared In

NIMFileObject.h

  path

Local file path

@property (nullable, nonatomic, copy, readonly) NSString *path

Discussion

Local file path

Declared In

NIMFileObject.h

  url

Remote file path

@property (nullable, nonatomic, copy, readonly) NSString *url

Discussion

Remote file path

Declared In

NIMFileObject.h

  md5

MD5 value of a file

@property (nullable, nonatomic, copy, readonly) NSString *md5

Discussion

MD5 value of a file

Declared In

NIMFileObject.h

  fileLength

File size

@property (nonatomic, assign, readonly) long long fileLength

Discussion

File size

Declared In

NIMFileObject.h