Observe VPN Related Events

Provides a simple way to watch any events required by your applications integrating with VPN SDK.

The VPN SDK provides an observer interface that can be implemented in order to handle any events that occur from the client.

The supported events that can be implemented are:

Status/Configuration Events

PropertyDescription

serverWillChange

The server defined in the client's configuration is about to change.

serverDidChange

The server defined in the client's configuration did change.

protocolWillChange

The protocol defined in the client's configuration is about to change.

protocolDidChange

The protocol defined in the client's configuration did change.

Connection Events

PropertyDescription

connectionWillBegin

The connection to the VPN server is about to start connecting.

connectionDidBegin

The connection to the VPN server did start connecting.

connectionWillReconnect

The connection to the VPN server is about to attempt to reconnect

connectionSucceeded

The connection to the VPN server was successful.

connectionFailed

The connection to the VPN server failed with error.

connectionWillDisconnect

The connection to the VPN server is about to disconnect.

connectionDidDisconnect

The connection to the VPN server did disconnect.

Miscellaneous Events

profileFailedToInstall

The iOS VPN profile failed to install and returned with error.

Called on connect(withConfiguration:completion:) if the VPN pop-up fails or is denied.

Last updated