Enum TunnelStopReason
- All Implemented Interfaces:
Comparable<TunnelStopReason>
Why a tunnel stopped.
The ordinals cross the SPI boundary, so existing constants must not be reordered.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe device lost the network the tunnel was running over.The app asked for it.The system is reclaiming the tunnel's host, usually for memory.Something else, or the platform did not say.The user turned the VPN off, in Settings or the system UI. -
Method Summary
Modifier and TypeMethodDescriptionstatic TunnelStopReasonReturns the enum constant of this type with the specified name.static TunnelStopReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
REQUESTED
The app asked for it. -
USER_DISABLED
The user turned the VPN off, in Settings or the system UI. -
NETWORK_LOST
The device lost the network the tunnel was running over. -
SYSTEM_RECLAIMED
The system is reclaiming the tunnel's host, usually for memory. -
UNKNOWN
Something else, or the platform did not say.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-