public enum TunnelStopReason

  1. Object
  2. Enum<TunnelStopReason>
  3. TunnelStopReason

ImplementsComparable<TunnelStopReason>

Why a tunnel stopped.

The ordinals cross the SPI boundary, so existing constants must not be reordered.

Enum constants

REQUESTEDThe app asked for it.
USER_DISABLEDThe user turned the VPN off, in Settings or the system UI.
NETWORK_LOSTThe device lost the network the tunnel was running over.
SYSTEM_RECLAIMEDThe system is reclaiming the tunnel’s host, usually for memory.
UNKNOWNSomething else, or the platform did not say.

Methods

public static TunnelStopReason[] values()
public static TunnelStopReason valueOf(String name)

Inherited methods

Enum constant details

REQUESTED

REQUESTED
The app asked for it.

USER_DISABLED

USER_DISABLED
The user turned the VPN off, in Settings or the system UI.

NETWORK_LOST

NETWORK_LOST
The device lost the network the tunnel was running over.

SYSTEM_RECLAIMED

SYSTEM_RECLAIMED
The system is reclaiming the tunnel’s host, usually for memory.

UNKNOWN

UNKNOWN
Something else, or the platform did not say.

Method details

values

public static TunnelStopReason[] values()

valueOf

public static TunnelStopReason valueOf(String name)