Contents

allowsCellularAccess

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

Declaration

var allowsCellularAccess: Bool { get set }

Discussion

This property controls whether tasks in sessions based on this session configuration are allowed to make connections over a cellular network.

The default value is true.

For more information, read Restrict Cellular Networking Correctly.

See Also

Setting general properties