mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 15:48:05 +00:00
Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com> Co-authored-by: sarendsen <coding-mosses0z@icloud.com> Co-authored-by: Lance Chant <13349722+lancechant@users.noreply.github.com> Co-authored-by: Gauvain <68083474+Gauvino@users.noreply.github.com>
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)
|
|
}
|
|
}
|
|
}
|
|
|