public class CallState extends State
Modifier and Type | Field and Description |
---|---|
static int |
C_ACTIVE
Call state ACTIVE
|
static int |
C_CLOSED
Call state CLOSED
|
static int |
C_IDLE
Call state IDLE
|
static int |
C_INCOMING
Call state INCOMING
|
static int |
C_OUTGOING
Call state OUTGOING
|
Constructor and Description |
---|
CallState()
Creates a CallState.
|
CallState(CallState s)
Creates a CallState.
|
CallState(int state)
Creates a CallState.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Whether the call is in "active" (call) state.
|
boolean |
isClosed()
Whether the call is in "closed" state.
|
boolean |
isIdle()
Whether the call is in "idle" state.
|
boolean |
isIncoming()
Whether the call is in "incoming" (called) state.
|
boolean |
isOutgoing()
Whether the call is in "outgoing" (calling) state.
|
java.lang.String |
toString()
Gets a string representation of the state.
|
public static final int C_IDLE
public static final int C_INCOMING
public static final int C_OUTGOING
public static final int C_ACTIVE
public static final int C_CLOSED
public CallState()
public CallState(int state)
public CallState(CallState s)
public boolean isIdle()
public boolean isIncoming()
public boolean isOutgoing()
public boolean isActive()
public boolean isClosed()