Skip to content

Commit 93753d9

Browse files
author
Pushkar Kulkarni
committed
Stub out new properties/enum in URLSessionConfiguration
1 parent 3618f00 commit 93753d9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Foundation/URLSession/URLSessionConfiguration.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,19 @@ 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+
open var waitsForConnectivity: Bool = false
214+
215+
/* A service type that specifies the Multipath TCP connection policy for transmitting data over Wi-Fi and cellular interfaces*/
216+
open var multipathServiceType: URLSessionConfiguration.MultipathServiceType = .none
217+
218+
}
219+
220+
extension URLSessionConfiguration {
221+
public enum MultipathServiceType {
222+
case none
223+
case handover
224+
case interactive
225+
case aggregate
226+
}
212227
}

0 commit comments

Comments
 (0)