PeerConnectionState enum

Current state of a peer connection.

Inheritance

Constructors

PeerConnectionState()
const

Values

new_ → const PeerConnectionState

At least one of the connection's ICE transports is in the new state, and none of them are in one of the following states: connecting, checking, failed, disconnected, or all of the connection's transports are in the closed state.

connecting → const PeerConnectionState

One or more of the ICE transports are currently in the process of establishing a connection. That is, their iceConnectionState is either checking or connected, and no transports are in the failed state.

connected → const PeerConnectionState

Every ICE transport used by the connection is either in use (state connected or completed) or is closed (state closed). In addition, at least one transport is either connected or completed.

disconnected → const PeerConnectionState

At least one of the ICE transports for the connection is in the disconnected state and none of the other transports are in the state failed, connecting or checking.

failed → const PeerConnectionState

One or more of the ICE transports on the connection is in the failed state.

closed → const PeerConnectionState

Peer connection is closed.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<PeerConnectionState>
A constant List of the values in this enum, in order of their declaration.