BackgroundTaskScheduler

public protocol BackgroundTaskScheduler : Sendable

Undocumented

  • Undocumented

    Declaration

    Swift

    func beginBackgroundTask(
        withName taskName: String?,
        expirationHandler handler: (@MainActor @Sendable () -> Void)?
    ) -> UIBackgroundTaskIdentifier
  • Undocumented

    Declaration

    Swift

    func endBackgroundTask(_ identifier: UIBackgroundTaskIdentifier)