PlatformMessage enum
The enum is used by the platform to notify the client of the VPN session status.
Values
- connected → const PlatformMessage
-
Indicates that the VPN configuration connected.
const PlatformMessage('connected')
- disconnected → const PlatformMessage
-
Indicates that the VPN configuration disconnected.
const PlatformMessage('disconnected')
- error → const PlatformMessage
-
Indicates that an error occurred in VPN connection, for example a timeout. A description of the error is given as the error argument to onPlatformMessage.
const PlatformMessage('error')
- linkDown → const PlatformMessage
-
Indicates that the default physical network connection is down.
const PlatformMessage('linkDown')
- linkUp → const PlatformMessage
-
Indicates that the default physical network connection is back up.
const PlatformMessage('linkUp')
- linkChanged → const PlatformMessage
-
Indicates that the default physical network connection changed, e.g. wifi->mobile.
const PlatformMessage('linkChanged')
- suspend → const PlatformMessage
-
Indicates that the OS is preparing to suspend, so the VPN should drop its connection. The extension is not guaranteed to receive this event prior to suspending.
const PlatformMessage('suspend')
- resume → const PlatformMessage
-
Indicates that the OS has resumed and the user has logged back in, so the VPN should try to reconnect.
const PlatformMessage('resume')
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
- toJS → String
-
no setter
- value → String
-
final
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
Static Methods
-
fromJS(
String value) → PlatformMessage
Constants
-
values
→ const List<
PlatformMessage> - A constant List of the values in this enum, in order of their declaration.