30 lines
1.3 KiB
C
30 lines
1.3 KiB
C
![]() |
// Copyright © 2019 650 Industries. All rights reserved.
|
||
|
|
||
|
#import <EXUpdates/EXUpdatesAppLauncher.h>
|
||
|
#import <EXUpdates/EXUpdatesSelectionPolicy.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
typedef void (^EXUpdatesAppLauncherCompletionBlock)(NSError * _Nullable error, BOOL success);
|
||
|
typedef void (^EXUpdatesAppLauncherUpdateCompletionBlock)(NSError * _Nullable error, EXUpdatesUpdate * _Nullable launchableUpdate);
|
||
|
|
||
|
@interface EXUpdatesAppLauncherWithDatabase : NSObject <EXUpdatesAppLauncher>
|
||
|
|
||
|
- (instancetype)initWithConfig:(EXUpdatesConfig *)config
|
||
|
database:(EXUpdatesDatabase *)database
|
||
|
directory:(NSURL *)directory
|
||
|
completionQueue:(dispatch_queue_t)completionQueue;
|
||
|
|
||
|
- (void)launchUpdateWithSelectionPolicy:(id<EXUpdatesSelectionPolicy>)selectionPolicy
|
||
|
completion:(EXUpdatesAppLauncherCompletionBlock)completion;
|
||
|
|
||
|
+ (void)launchableUpdateWithConfig:(EXUpdatesConfig *)config
|
||
|
database:(EXUpdatesDatabase *)database
|
||
|
selectionPolicy:(id<EXUpdatesSelectionPolicy>)selectionPolicy
|
||
|
completion:(EXUpdatesAppLauncherUpdateCompletionBlock)completion
|
||
|
completionQueue:(dispatch_queue_t)completionQueue;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|