Vpn

interface Vpn

Public API to handle start/stop type of actions for the device VPN

Functions

Link copied to clipboard
abstract suspend fun pause()

Pauses the VPN tunnel. All features that were registered to use the VPN tunnel (eg. AppTP, NetP) continue to be registered and so a subsequent start call will re-enable them all

Link copied to clipboard
abstract suspend fun snooze(triggerAtMillis: Long)

Snoozes the VPN for triggerAtMillis milliseconds

Link copied to clipboard
abstract suspend fun start()

Enables the device VPN by starting the VPN service

Link copied to clipboard
abstract suspend fun stop()

Stops the VPN tunnel AND all features registered to use the VPN tunnel (eg. AppTP, NetP). A subsequent call to start will not re-start the VPN because no feature would be registered.