Connection.State Class Reference

Overview

  • Package: com.twilio.client
  • Subclass of: Enum

An enum describing the current state of the Connection.

Tasks

NameDescriptionType
PENDINGThe connection is new and incoming, and has not been accepted, ignored, or rejected yet.Field
CONNECTINGThe connection has been initiated (outgoing) or accepted (incoming), and is in the process of connecting.Field
CONNECTEDThe connection is connected and active.Field
DISCONNECTEDThe connection has been disconnected, either due to an explicit hangup command or an error.Field

Fields

PENDING

The connection is new and incoming, and has not been accepted, ignored, or rejected yet.

CONNECTING

The connection has been initiated (outgoing) or accepted (incoming), and is in the process of connecting.

CONNECTED

The connection is connected and active.

DISCONNECTED

The connection has been disconnected, either due to an explicit hangup command or an error.