This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo-updates/ios/EXUpdates/AppLauncher/EXUpdatesAppLauncherWithDatabase.h
2021-04-02 02:24:13 +03:00

30 lines
1.3 KiB
Objective-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