mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-12 17:00:23 +01:00
16 lines
456 B
Swift
16 lines
456 B
Swift
import ExpoModulesCore
|
|
import UIKit
|
|
|
|
public class BackgroundDownloaderAppDelegate: ExpoAppDelegateSubscriber {
|
|
public func application(
|
|
_ application: UIApplication,
|
|
handleEventsForBackgroundURLSession identifier: String,
|
|
completionHandler: @escaping () -> Void
|
|
) {
|
|
if identifier == "com.fredrikburmester.streamyfin.backgrounddownloader" {
|
|
BackgroundDownloaderModule.setBackgroundCompletionHandler(completionHandler)
|
|
}
|
|
}
|
|
}
|
|
|