SecurityAlert enum

Identifies specific security violations or network policy alerts.

These alerts are primarily used by the NetworkReachability.guard method to explain why a sensitive operation was blocked.

Inheritance
Available extensions

Values

vpnDetected → const SecurityAlert

A VPN or tunnel interface (e.g., WireGuard, OpenVPN) was detected.

Often used to enforce region-locking or prevent bypass of security filters.

dnsHijackDetected → const SecurityAlert

The system's DNS resolution results do not match trusted resolvers.

Indicates that the network might be intercepting or tampering with DNS traffic (Man-in-the-Middle attack).

proxyDetected → const SecurityAlert

An HTTP or SOCKS proxy was detected in the system settings.

This can be an indicator of traffic monitoring or unauthorized interception.

unallowedInterface → const SecurityAlert

The active network interface is not permitted by the application policy.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<SecurityAlert>
A constant List of the values in this enum, in order of their declaration.