Language

VpnState Enum

Definition

Defines values used by the Android VpnState API.

public enum VpnState
type VpnState = 
Inheritance
VpnState

Fields

Name Value Description
Disconnected 0

The VPN has not been started, or some other VPN is active.

Android reference for android.net.VpnProfileState.STATE_DISCONNECTED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Connecting 1

The VPN is attempting to connect, potentially after a failure.

Android reference for android.net.VpnProfileState.STATE_CONNECTING.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Connected 2

The VPN was established successfully.

Android reference for android.net.VpnProfileState.STATE_CONNECTED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Failed 3

A non-recoverable error has occurred, and will not be retried.

Android reference for android.net.VpnProfileState.STATE_FAILED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to