AgoraRtmRawMessage Class Reference

Inherits from AgoraRtmMessage : NSObject
Declared in AgoraRtmKit.h

Overview

Attributes of a peer-to-peer or channel raw message. Inherited from AgoraRtmMessage.

  rawData

Agora RTM raw message content. Must not exceed 32 KB in length.

@property (nonatomic, nonnull) NSData *rawData

Declared In

AgoraRtmKit.h

– initWithRawData:description:

Creates and initializes an AgoraRtmRawMessage instance.

- (instancetype _Nonnull)initWithRawData:(NSData *_Nonnull)rawData description:(NSString *_Nonnull)description

Parameters

rawData

A raw message of less than 32 KB.

description

A brief text description of the raw message. If you set a text description, ensure that the size of the raw message and the description combined does not exceed 32 KB.

Return Value

An AgoraRtmRawMessage instance.

Declared In

AgoraRtmKit.h