// Copyright © 2019 650 Industries. All rights reserved. #import #import NS_ASSUME_NONNULL_BEGIN typedef void (^EXUpdatesAppLauncherCompletionBlock)(NSError * _Nullable error, BOOL success); typedef void (^EXUpdatesAppLauncherUpdateCompletionBlock)(NSError * _Nullable error, EXUpdatesUpdate * _Nullable launchableUpdate); @interface EXUpdatesAppLauncherWithDatabase : NSObject - (instancetype)initWithConfig:(EXUpdatesConfig *)config database:(EXUpdatesDatabase *)database directory:(NSURL *)directory completionQueue:(dispatch_queue_t)completionQueue; - (void)launchUpdateWithSelectionPolicy:(id)selectionPolicy completion:(EXUpdatesAppLauncherCompletionBlock)completion; + (void)launchableUpdateWithConfig:(EXUpdatesConfig *)config database:(EXUpdatesDatabase *)database selectionPolicy:(id)selectionPolicy completion:(EXUpdatesAppLauncherUpdateCompletionBlock)completion completionQueue:(dispatch_queue_t)completionQueue; @end NS_ASSUME_NONNULL_END