ALCCommunicator Class Reference

Inherits from NSObject
Declared in ALCCommunicator.h

Overview

This communicator SDK acts as a hub for all SDK pub/sub communication.

– subscribe:forTopic:

Add the provided subscriber to the set of subscribers for a given topic.

- (void)subscribe:(id<ALCSubscriber>)subscriber forTopic:(NSString *)topic

Discussion

Add the provided subscriber to the set of subscribers for a given topic.

Declared In

ALCCommunicator.h

– subscribe:forTopics:

Add the provided subscriber to the set of subscribers for the given topics.

- (void)subscribe:(id<ALCSubscriber>)subscriber forTopics:(NSArray<NSString*> *)topics

Discussion

Add the provided subscriber to the set of subscribers for the given topics.

Declared In

ALCCommunicator.h

– unsubscribe:forTopic:

Remove the provided subscriber from the set of subscribers for a given topic.

- (void)unsubscribe:(id<ALCSubscriber>)subscriber forTopic:(NSString *)topic

Discussion

Remove the provided subscriber from the set of subscribers for a given topic.

Declared In

ALCCommunicator.h

– unsubscribe:forTopics:

Remove the provided subscriber from the set of subscribers for the given topics.

- (void)unsubscribe:(id<ALCSubscriber>)subscriber forTopics:(NSArray<NSString*> *)topic

Discussion

Remove the provided subscriber from the set of subscribers for the given topics.

Declared In

ALCCommunicator.h

  messagingService

The messaging service for the communicator SDK responsible for relaying messages within the system.

@property (nonatomic, strong, readonly) ALCMessagingService *messagingService

Discussion

The messaging service for the communicator SDK responsible for relaying messages within the system.

Declared In

ALCCommunicator.h

  defaultCommunicator

Returns the default communicator instance.

@property (class, strong, readonly) ALCCommunicator *defaultCommunicator

Discussion

Returns the default communicator instance.

Declared In

ALCCommunicator.h