public enum CallState

  1. Object
  2. Enum<CallState>
  3. CallState

ImplementsComparable<CallState>

Where a call is in its life. The ports map their platform’s own state machine onto this one, so app code has a single set of states to reason about.

The ordinals cross the SPI boundary, so existing constants must not be reordered – new ones go on the end.

Enum constants

RINGINGReported to the system but not yet connected, and ringing.
DIALINGAn outgoing call the system has accepted and is placing, but which the far end has not yet answered.
ACTIVEConnected, with audio expected to be flowing.
HELDConnected but held, either by this app or by the system taking the audio for another call.
ENDEDOver.

Methods

public static CallState[] values()
public static CallState valueOf(String name)

Inherited methods

Enum constant details

RINGING

RINGING
Reported to the system but not yet connected, and ringing. An incoming call starts here.

DIALING

DIALING
An outgoing call the system has accepted and is placing, but which the far end has not yet answered.

ACTIVE

ACTIVE
Connected, with audio expected to be flowing.

HELD

HELD
Connected but held, either by this app or by the system taking the audio for another call.

ENDED

ENDED
Over. Terminal: a call never leaves this state, and acting on one that has reports CallError.INVALID_ID.

Method details

values

public static CallState[] values()

valueOf

public static CallState valueOf(String name)