Storage Documentation

Structure Cellular

public struct Cellular: Component  

A struct defining whether the request for a given endpoint can run on cellular or not. Defaults to true.

%81 Cellular Cellular Component Component Cellular->Component

Conforms To

Component

A protocol defining a unique identifier for a specific request component.

Initializers

init(_:​)

public init(_ allowsCellularAccess: Bool)  

Init.

Parameters

allows​Cellular​Access Bool

A Bool representing whether the request can run on cellular or not.

Properties

default​Value

public static var defaultValue: Cellular  

The default value when no cached component can be found.

value

public let value: Bool

A Bool representing whether the request can run on cellular or not.

Methods

update(_:​)

public func update(_ request: inout URLRequest)  

Update a given URLRequest.

Parameters

request inout URLRequest

A mutable URLRequest.