Package io.rong.calllib
Class RongCallSession
-
- All Implemented Interfaces:
public class RongCallSession通话信息
-
-
Field Summary
Fields Modifier and Type Field Description public StringcallIdpublic ConversationTypeconversationTypepublic StringtargetIdpublic RongCallCommon.CallMediaTypemediaTypepublic RongCallCommon.CallEngineTypeengineTypepublic RongCallCommon.CallUserTypeuserTypepublic longstartTimepublic longactiveTimepublic longendTimepublic StringselfUserIdpublic StringinviterUserIdpublic StringcallerUserIdpublic List<String>observerUserListpublic Stringextrapublic StringsessionIdpublic MessagePushConfigpushConfigpublic final static Creator<RongCallSession>CREATOR
-
Constructor Summary
Constructors Constructor Description RongCallSession()RongCallSession(Parcel in)
-
Method Summary
Modifier and Type Method Description StringgetCallId()通话ID voidsetCallId(String callId)通话ID ConversationTypegetConversationType()voidsetConversationType(ConversationType conversationType)StringgetTargetId()通话的目标会话ID 根据不同的 conversationType,可能是聊天 Id、讨论组 Id、群组 Id 或聊天室 Id。 voidsetTargetId(String targetId)通话的目标会话ID 根据不同的 conversationType,可能是聊天 Id、讨论组 Id、群组 Id 或聊天室 Id。 RongCallCommon.CallMediaTypegetMediaType()音视频通话类型 voidsetMediaType(RongCallCommon.CallMediaType mediaType)音视频通话类型 RongCallCommon.CallEngineTypegetEngineType()音视频引擎类型,开发者无需关心 voidsetEngineType(RongCallCommon.CallEngineType engineType)音视频引擎类型,开发者无需关心 RongCallCommon.CallUserTypegetUserType()当前用户类型 voidsetUserType(RongCallCommon.CallUserType userType)当前用户类型 longgetStartTime()startTime:记录开始主叫或被叫的本地系统时间戳 currentTimeMillis voidsetStartTime(long startTime)startTime:记录开始主叫或被叫的本地系统时间戳 currentTimeMillis longgetActiveTime()通话建立成功之后的本地系统时间戳 currentTimeMillis voidsetActiveTime(long activeTime)通话建立成功之后的本地系统时间戳 currentTimeMillis longgetEndTime()endTime:记录本次音视频通话挂断(主动\被动) 或 超时 时的本地系统时间戳 currentTimeMillis voidsetEndTime(long endTime)endTime:记录本次音视频通话挂断(主动\被动) 或 超时 时的本地系统时间戳 currentTimeMillis StringgetSelfUserId()voidsetSelfUserId(String selfUserId)StringgetInviterUserId()邀请当前用户加入通话的邀请者 voidsetInviterUserId(String inviterUserId)邀请当前用户加入通话的邀请者 StringgetCallerUserId()获取发送消息的用户 Id。 voidsetCallerUserId(String callerUserId)获取发送消息的用户 Id。 List<String>getObserverUserList()当前的观察者列表 voidsetObserverUserList(List<String> observerUserList)当前的观察者列表 StringgetExtra()voidsetExtra(String extra)StringgetSessionId()记录当前通话的唯一标识 voidsetSessionId(String sessionId)MessagePushConfiggetPushConfig()voidsetPushConfig(MessagePushConfig pushConfig)List<CallUserProfile>getParticipantProfileList()当前的用户列表,包含观察者列表中的成员 voidsetParticipantUserList(List<CallUserProfile> participantsProfileList)当前的用户列表,包含观察者列表中的成员 voidwriteToParcel(Parcel dest, int flags)intdescribeContents()描述了包含在 Parcelable 对象排列信息中的特殊对象的类型。 StringtoString()-
-
Method Detail
-
getCallId
String getCallId()
通话ID
-
setCallId
void setCallId(String callId)
通话ID
-
getConversationType
ConversationType getConversationType()
-
setConversationType
void setConversationType(ConversationType conversationType)
-
getTargetId
String getTargetId()
通话的目标会话ID 根据不同的 conversationType,可能是聊天 Id、讨论组 Id、群组 Id 或聊天室 Id。
-
setTargetId
void setTargetId(String targetId)
通话的目标会话ID 根据不同的 conversationType,可能是聊天 Id、讨论组 Id、群组 Id 或聊天室 Id。
-
getMediaType
RongCallCommon.CallMediaType getMediaType()
音视频通话类型
-
setMediaType
void setMediaType(RongCallCommon.CallMediaType mediaType)
音视频通话类型
-
getEngineType
RongCallCommon.CallEngineType getEngineType()
音视频引擎类型,开发者无需关心
-
setEngineType
void setEngineType(RongCallCommon.CallEngineType engineType)
音视频引擎类型,开发者无需关心
-
getUserType
RongCallCommon.CallUserType getUserType()
当前用户类型
-
setUserType
void setUserType(RongCallCommon.CallUserType userType)
当前用户类型
-
getStartTime
long getStartTime()
startTime:记录开始主叫或被叫的本地系统时间戳 currentTimeMillis
-
setStartTime
void setStartTime(long startTime)
startTime:记录开始主叫或被叫的本地系统时间戳 currentTimeMillis
-
getActiveTime
long getActiveTime()
通话建立成功之后的本地系统时间戳 currentTimeMillis
-
setActiveTime
void setActiveTime(long activeTime)
通话建立成功之后的本地系统时间戳 currentTimeMillis
-
getEndTime
long getEndTime()
endTime:记录本次音视频通话挂断(主动\被动) 或 超时 时的本地系统时间戳 currentTimeMillis
-
setEndTime
void setEndTime(long endTime)
endTime:记录本次音视频通话挂断(主动\被动) 或 超时 时的本地系统时间戳 currentTimeMillis
-
getSelfUserId
String getSelfUserId()
-
setSelfUserId
void setSelfUserId(String selfUserId)
-
getInviterUserId
String getInviterUserId()
邀请当前用户加入通话的邀请者
-
setInviterUserId
void setInviterUserId(String inviterUserId)
邀请当前用户加入通话的邀请者
-
getCallerUserId
String getCallerUserId()
获取发送消息的用户 Id。
-
setCallerUserId
void setCallerUserId(String callerUserId)
获取发送消息的用户 Id。
-
getObserverUserList
List<String> getObserverUserList()
当前的观察者列表
-
setObserverUserList
void setObserverUserList(List<String> observerUserList)
当前的观察者列表
-
getExtra
String getExtra()
-
setExtra
void setExtra(String extra)
-
getSessionId
String getSessionId()
记录当前通话的唯一标识
-
setSessionId
void setSessionId(String sessionId)
-
getPushConfig
MessagePushConfig getPushConfig()
-
setPushConfig
void setPushConfig(MessagePushConfig pushConfig)
-
getParticipantProfileList
List<CallUserProfile> getParticipantProfileList()
当前的用户列表,包含观察者列表中的成员
-
setParticipantUserList
void setParticipantUserList(List<CallUserProfile> participantsProfileList)
当前的用户列表,包含观察者列表中的成员
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
描述了包含在 Parcelable 对象排列信息中的特殊对象的类型。
- Returns:
一个标志位,表明Parcelable对象特殊对象类型集合的排列。
-
toString
String toString()
-
-
-
-