Enum RCCallPlusUserSessionStatus
-
- All Implemented Interfaces:
public enum RCCallPlusUserSessionStatus
用户在通话中的状态
-
-
Field Summary
Fields Modifier and Type Field Description public final int
value
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
无效状态,用户一般不会出现,多数情况下作为枚举默认值使用
IDLE
空闲状态,用户当前未进行音视频通话
CALLING
呼叫中状态,用户正在呼叫其他用户
INVITED
被邀请中状态
例:用户A和用户B正在进行音视频通话,用户A使用 invite 方法邀请了用户C。在用户C接听成功前,他在用户A和用户B的状态就是此状态
RINGING
正在响铃状态,用户收到通话邀请后,SDK内部会发送该状态给远端用户;该状态和播放手机铃声没有关系,仅仅是个标识
BUSY_LINE_RINGING
忙线(响铃中)状态
例:用户A正在呼叫用户B,用户C呼叫A或者B。用户A和用户B在用户C的状态就是此状态
BUSY_LINE_WAIT
忙线(通话中)状态
例:用户A和用户B正在进行通话,用户C呼叫A或者B。用户A和用户B在用户C的状态就是此状态
CONNECTING
连接中状态,用户调用 accept 或 joinCall 成功后会进行到该状态
ON_CALL
通话中状态,用户已经建立音视频通话成功
ENDED
通话已结束状态
NO_ANSWER
未应答状态
例:用户A单人呼叫用户B,用户B一直未接听;等超时通话结束后,用户A的状态为NO_ANSWER ,用户B的状态为MISSED
MISSED
未接听状态
例:用户A单人呼叫用户B,用户B一直未接听;等超时通话结束后,用户A的状态为NO_ANSWER ,用户B的状态为MISSED
CANCELED
已取消状态
例:用户A呼叫用户B,用户B未接听时,用户A挂断通话成功。此时用户A为已取消状态
DECLINED
已拒绝状态
例:用户A呼叫用户B,用户B直接挂断通话。此时用户B为已拒绝状态
ERROR
错误状态,用户在服务器状态异常
-
Method Summary
Modifier and Type Method Description static RCCallPlusUserSessionStatus
getCallUserSessionStatus(int code)
static Array<RCCallPlusUserSessionStatus>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static RCCallPlusUserSessionStatus
valueOf(String name)
Returns the enum constant of this type with the specified name. int
getValue()
-
-
Method Detail
-
getCallUserSessionStatus
static RCCallPlusUserSessionStatus getCallUserSessionStatus(int code)
-
values
static Array<RCCallPlusUserSessionStatus> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static RCCallPlusUserSessionStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
getValue
int getValue()
-
-
-
-