public enum CallState
- Object
- Enum<CallState>
- 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
RINGING | Reported to the system but not yet connected, and ringing. |
DIALING | An outgoing call the system has accepted and is placing, but which the far end has not yet answered. |
ACTIVE | Connected, with audio expected to be flowing. |
HELD | Connected but held, either by this app or by the system taking the audio for another call. |
ENDED | Over. |
Methods
public static CallState[] values() | |
public static CallState valueOf(String name) |
Inherited methods
Enum constant details
RINGING
RINGINGReported to the system but not yet connected, and ringing. An
incoming call starts here.
DIALING
DIALINGAn outgoing call the system has accepted and is placing, but which
the far end has not yet answered.
ACTIVE
ACTIVEConnected, with audio expected to be flowing.
HELD
HELDConnected but held, either by this app or by the system taking the
audio for another call.
ENDED
ENDEDOver. 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)