Instance Property

allowsCellularAccess

A Boolean value indicating whether the operation object may send data over the cell network.

Declaration

var allowsCellularAccess: Bool { get set }

Discussion

When you send or receive many records, or when you send records with large assets, you might set this property to false to avoid consuming too much of the user’s cellular data bandwidth. For operations involving only a few records, it is fine to leave this property set to true, which is the default.

When this property is set to false, the operation executes normally but fails if Wi-Fi is not available.

See Also

Customizing the Network Access Behavior

var timeoutIntervalForRequest: TimeInterval

The timeout interval to use when waiting for additional data.

Deprecated
var timeoutIntervalForResource: TimeInterval

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

Deprecated