https://kotlinlang.org logo
#ktor
Title
# ktor
c

clhols

02/01/2020, 2:05 PM
The Kotlin Blog mentions that you can configure the Ios HTTP engine like this:
HttpClient(Ios) {
engine {
configureSession {
networkServiceType = NSURLNetworkServiceTypeBackground
}
}
}
But when doing that, I get the follow compile error: Unresolved reference: NSURLNetworkServiceTypeBackground I am using 1.3.0.
Figured it out. I was missing the import:
Copy code
import platform.Foundation.NSURLNetworkServiceTypeBackground
2 Views