---
title: isOnDemandEnabled
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnmanager/isondemandenabled
---

# isOnDemandEnabled

A Boolean used to toggle the Connect On Demand capability.

## Declaration

```swift
var isOnDemandEnabled: Bool { get set }
```

## Mentioned in

Routing your VPN network traffic

## Discussion

Discussion The default value of this property is false.

## See Also

### Accessing VPN configuration properties

- [isEnabled](networkextension/nevpnmanager/isenabled.md)
- [protocolConfiguration](networkextension/nevpnmanager/protocolconfiguration.md)
- [protocol](networkextension/nevpnmanager/protocol.md)
- [localizedDescription](networkextension/nevpnmanager/localizeddescription.md)
- [onDemandRules](networkextension/nevpnmanager/ondemandrules.md)
