AgoraRtmFileMessage Class Reference

Inherits from AgoraRtmMessage : NSObject
Declared in AgoraRtmKit.h

Overview

The interface for setting and retrieving attributes of a file message. Inherited from AgoraRtmMessage.

  size

The size of the uploaded file in bytes.

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

Declared In

AgoraRtmKit.h

  mediaId

The media ID of the uploaded file.

@property (nonatomic, nonnull, readonly) NSString *mediaId

Discussion

  • The media ID is automatically populated once the file is uploaded to the file server.
  • The media ID is valid for 7 days because the file server keeps all uploaded files for 7 days only.

Declared In

AgoraRtmKit.h

  thumbnail

The thumbnail of the uploaded file.

@property (nonatomic, copy, nonnull) NSData *thumbnail

Discussion

NOTE The size of thumbnail and fileName combined must not exceed 32 KB.

Declared In

AgoraRtmKit.h

  fileName

The name of the uploaded file.

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

Discussion

NOTE The size of thumbnail and fileName combined must not exceed 32 KB.

Declared In

AgoraRtmKit.h