Skip to content

Commit 57fb8d2

Browse files
authored
Merge pull request #1217 from pushkarnk/urlconfiguration-new-properties
2 parents ece9521 + 25561b4 commit 57fb8d2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Foundation/URLSession/URLSessionConfiguration.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,22 @@ open class URLSessionConfiguration : NSObject, NSCopying {
209209
*/
210210
open var protocolClasses: [AnyClass]?
211211

212+
/* A Boolean value that indicates whether the session should wait for connectivity to become available, or fail immediately */
213+
@available(*, unavailable, message: "Not available on non-Darwin platforms")
214+
open var waitsForConnectivity: Bool { NSUnsupported() }
215+
216+
/* A service type that specifies the Multipath TCP connection policy for transmitting data over Wi-Fi and cellular interfaces*/
217+
@available(*, unavailable, message: "Not available on non-Darwin platforms")
218+
open var multipathServiceType: URLSessionConfiguration.MultipathServiceType { NSUnsupported() }
219+
220+
}
221+
222+
@available(*, unavailable, message: "Not available on non-Darwin platforms")
223+
extension URLSessionConfiguration {
224+
public enum MultipathServiceType {
225+
case none
226+
case handover
227+
case interactive
228+
case aggregate
229+
}
212230
}

0 commit comments

Comments
 (0)