// // AgentConnection.h // Sparkle // // Created by Mayur Pawashe on 7/17/16. // Copyright © 2016 Sparkle Project. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @protocol AgentConnectionDelegate - (void)agentConnectionDidInitiate; - (void)agentConnectionDidInvalidate; @end @protocol SPUInstallerAgentProtocol; SPU_OBJC_DIRECT_MEMBERS @interface AgentConnection : NSObject - (instancetype)initWithHostBundleIdentifier:(NSString *)bundleIdentifier delegate:(id)delegate; - (void)startListener; - (void)invalidate; @property (nonatomic, readonly, nullable) id agent; @property (nonatomic, readonly) BOOL connected; @property (nonatomic, nullable) NSError *invalidationError; @end NS_ASSUME_NONNULL_END