---
title: NWParameters.PrivacyContext
framework: network
role: symbol
role_heading: Class
path: network/nwparameters/privacycontext
---

# NWParameters.PrivacyContext

An object that defines the privacy requirements for a set of connections.

## Declaration

```swift
class PrivacyContext
```

## Topics

### Configuring Custom Privacy Settings

- [init(description:)](network/nwparameters/privacycontext/init(description:).md)
- [default](network/nwparameters/privacycontext/default.md)
- [disableLogging()](network/nwparameters/privacycontext/disablelogging().md)
- [flushCache()](network/nwparameters/privacycontext/flushcache().md)

### Requiring Encrypted DNS

- [requireEncryptedNameResolution(_:fallbackResolver:)](network/nwparameters/privacycontext/requireencryptednameresolution(_:fallbackresolver:).md)
- [NWParameters.PrivacyContext.ResolverConfiguration](network/nwparameters/privacycontext/resolverconfiguration.md)

### Configuring Proxies

- [proxyConfigurations](network/nwparameters/privacycontext/proxyconfigurations.md)
- [ProxyConfiguration](network/proxyconfiguration.md)

## Relationships

### Conforms To

- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring Privacy Settings

- [setPrivacyContext(_:)](network/nwparameters/setprivacycontext(_:).md)
