ALCMessage Class Reference

Inherits from NSNotification
Declared in ALCMessage.h

Overview

Class representing messages passed in the Communicator SDK.

  data

Convenience property for retrieving the raw data of the message. This will also be available via the “data” key of the userInfo property.

@property (nonatomic, strong, readonly) NSDictionary<NSString*id> *data

Discussion

Convenience property for retrieving the raw data of the message. This will also be available via the “data” key of the userInfo property.

Declared In

ALCMessage.h

  topic

Convenience property for retrieving the topic of the message. This will also be available via the “topic” key of the userInfo property. A full list of supported topics may be found in ALCTopic.h.

@property (nonatomic, copy, readonly) NSString *topic

Discussion

Convenience property for retrieving the topic of the message. This will also be available via the “topic” key of the userInfo property. A full list of supported topics may be found in ALCTopic.h.

Declared In

ALCMessage.h

  publisherIdentifier

Convenience method for retrieving the id of the publisher of the message. This will also be available via the “pub_id” key of the userInfo property.

@property (nonatomic, copy, readonly) NSString *publisherIdentifier

Discussion

Convenience method for retrieving the id of the publisher of the message. This will also be available via the “pub_id” key of the userInfo property.

Declared In

ALCMessage.h

– initWithData:topic:fromPublisher:

Initialize a message with data in a pre-determined format for a given topic.

- (instancetype)initWithData:(NSDictionary<NSString*,id> *)data topic:(NSString *)topic fromPublisher:(id<ALCPublisher>)publisher

Discussion

Initialize a message with data in a pre-determined format for a given topic.

Declared In

ALCMessage.h