1 // Copyright 2018-present 650 Industries. All rights reserved. 2 3 #import <ExpoModulesCore/EXSingletonModule.h> 4 #import <ExpoModulesCore/EXTaskServiceInterface.h> 5 #import <EXTaskManager/EXTask.h> 6 #import <EXTaskManager/EXTaskExecutionRequest.h> 7 8 @interface EXTaskService : EXSingletonModule <EXTaskServiceInterface, EXTaskDelegate> 9 10 + (BOOL)hasBackgroundModeEnabled:(nonnull NSString *)backgroundMode; 11 12 // AppDelegate handlers 13 - (void)applicationDidFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; 14 - (void)runTasksWithReason:(EXTaskLaunchReason)launchReason 15 userInfo:(nullable NSDictionary *)userInfo 16 completionHandler:(nullable void (^)(UIBackgroundFetchResult))completionHandler; 17 18 @end 19