-
Notifications
You must be signed in to change notification settings - Fork 577
BackgroundTasks iOS xcode27.0 b5
Alex Soto edited this page Aug 10, 2026
·
1 revision
#BackgroundTasks.framework
diff -ruN /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h
--- /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h 2026-07-15 23:28:55
+++ /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h 2026-08-05 03:04:19
@@ -105,9 +105,11 @@
/// - Returns: `YES` if the request was successfully submitted; `NO` if there was an error
- (BOOL)submitTaskRequest:(BGTaskRequest *)taskRequest
error:(NSError * _Nullable *)error
- API_DEPRECATED("Use submitTaskRequest:completionHandler: instead to capture all error conditions",
+ API_DEPRECATED("Use -submitTaskRequest:completionHandler: (Swift: submitTaskRequest(_:completionHandler:), "
+ "or 'try await submitTaskRequest(_:)') to capture all error conditions",
ios(13.0, 27.0), tvos(13.0, 27.0))
- API_UNAVAILABLE(macos) API_UNAVAILABLE(watchos);
+ API_UNAVAILABLE(watchos)
+ API_UNAVAILABLE(macos);
/// Submits a background task request to be scheduled with a completion handler.
///
@@ -133,10 +135,10 @@
///
/// The completion handler is called on an arbitrary queue.
///
-/// - Note: The completion handler may be invoked on a arbitrary queue after an arbitrary amount of delay.
+/// - Note: The completion handler may be invoked on an arbitrary queue after an arbitrary amount of delay.
/// Do not call this method from the main thread or performance-critical contexts.
///
-/// This method replaces the deprecated ``submitTaskRequest:error:`` method
+/// This method replaces the deprecated ``BGTaskScheduler/submitTaskRequest:error:`` method.
- (void)submitTaskRequest:(BGTaskRequest *)taskRequest
completionHandler:(void (^)(NSError * _Nullable error))completionHandler
NS_SWIFT_ASYNC_NAME(submitTaskRequest(_:))
@@ -158,7 +160,7 @@
/// objects. The array is empty if there are no scheduled tasks.
///
/// The objects passed in the array are copies of the existing requests. Changing the attributes of a request has no
-/// effect. To change the attributes submit a new task request using ``BGTaskScheduler/submitTaskRequest:error:``.
+/// effect. To change the attributes submit a new task request using ``BGTaskScheduler/submitTaskRequest:completionHandler:``.
///
/// - Parameters:
/// - completionHandler: The completion handler called with the pending tasks.