NIMCustomObject Class Reference

Inherits from NSObject
Conforms to NIMMessageObject
Declared in NIMCustomObject.h

Overview

Custom messages object

  attachment

Custom attachment

@property (nullable, nonatomic, strong) id<NIMCustomAttachment> attachment

Discussion

Custom attachment

The SDK transmits the serialized data of the attachment by calling the encodeAttachment interface.

Declared In

NIMCustomObject.h

+ registerCustomDecoder:

Register the parser for custom messages

+ (void)registerCustomDecoder:(id<NIMCustomAttachmentCoding>)decoder

Parameters

decoder

parser for custom messages @disucssion If a custom message type is used, register a custom message parser for unserializing the custom message into an object identified by the upper-layer application.

Discussion

Register the parser for custom messages

Declared In

NIMCustomObject.h