Instance Property

sharedContainerIdentifier

The identifier for the shared container into which files in background URL sessions should be downloaded.

Declaration

var sharedContainerIdentifier: String? { get set }

Discussion

To create a URL session for use by an app extension, you must set this property to a valid identifier for a container shared between the app extension and its containing app.

For information about app extensions, see App Extension Programming Guide.

See Also

Setting General Properties

var identifier: String?

The background session identifier of the configuration object.

var httpAdditionalHeaders: [AnyHashable : Any]?

A dictionary of additional headers to send with requests.

var allowsCellularAccess: Bool

A Boolean value that determines whether connections should be made over a cellular network.

var timeoutIntervalForRequest: TimeInterval

The timeout interval to use when waiting for additional data.

var timeoutIntervalForResource: TimeInterval

The maximum amount of time that a resource request should be allowed to take.

var waitsForConnectivity: Bool

A Boolean value that indicates whether the session should wait for connectivity to become available, or fail immediately.