// Copyright 2020-present 650 Industries. All rights reserved. #if __has_include() #import #import #import @class EXUpdatesConfig; @class EXUpdatesUpdate; @class EXUpdatesSelectionPolicy; @class EXUpdatesDatabase; NS_ASSUME_NONNULL_BEGIN @protocol EXUpdatesBindingDelegate - (nullable EXUpdatesConfig *)configForScopeKey:(NSString *)scopeKey; - (nullable EXUpdatesSelectionPolicy *)selectionPolicyForScopeKey:(NSString *)scopeKey; - (nullable EXUpdatesUpdate *)launchedUpdateForScopeKey:(NSString *)scopeKey; - (nullable NSDictionary *)assetFilesMapForScopeKey:(NSString *)scopeKey; - (BOOL)isUsingEmbeddedAssetsForScopeKey:(NSString *)scopeKey; - (BOOL)isStartedForScopeKey:(NSString *)scopeKey; - (BOOL)isEmergencyLaunchForScopeKey:(NSString *)scopeKey; - (void)requestRelaunchForScopeKey:(NSString *)scopeKey withCompletion:(EXUpdatesAppRelaunchCompletionBlock)completion; @end @protocol EXUpdatesDatabaseBindingDelegate @property (nonatomic, strong, readonly) NSURL *updatesDirectory; @property (nonatomic, strong, readonly) EXUpdatesDatabase *database; @end @interface EXUpdatesBinding : EXUpdatesService - (instancetype)initWithScopeKey:(NSString *)scopeKey updatesKernelService:(id)updatesKernelService databaseKernelService:(id)databaseKernelService; @end NS_ASSUME_NONNULL_END #endif