| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | ////  ALCCommunicator.h//  AppLovinSDK////  Created by Thomas So on 7/4/19.//#import <AppLovinSDK/ALCSubscriber.h>@class ALCCommunicator;@class ALCMessagingService;NS_ASSUME_NONNULL_BEGIN/** * This communicator SDK acts as a hub for all SDK pub/sub communication. */@interface ALCCommunicator : NSObject/** * Add the provided subscriber to the set of subscribers for a given topic. */- (void)subscribe:(id<ALCSubscriber>)subscriber forTopic:(NSString *)topic;/** * Add the provided subscriber to the set of subscribers for the given topics. */- (void)subscribe:(id<ALCSubscriber>)subscriber forTopics:(NSArray<NSString *> *)topics;/** * Remove the provided subscriber from the set of subscribers for a given topic. */- (void)unsubscribe:(id<ALCSubscriber>)subscriber forTopic:(NSString *)topic;/** * Remove the provided subscriber from the set of subscribers for the given topics. */- (void)unsubscribe:(id<ALCSubscriber>)subscriber forTopics:(NSArray<NSString *> *)topics;/** * @return @c YES if the SDK will handle a published @c ALCMessage for a given @c topic. */- (BOOL)respondsToTopic:(NSString *)topic;/** * The messaging service for the communicator SDK responsible for relaying messages within the system. */@property (nonatomic, strong, readonly) ALCMessagingService *messagingService;/** * Returns the default communicator instance. */@property (class, strong, readonly) ALCCommunicator *defaultCommunicator;- (instancetype)init NS_UNAVAILABLE;+ (instancetype)new NS_UNAVAILABLE;@endNS_ASSUME_NONNULL_END
 |