# IMLibRTCClient

public class IMLibRTCClient

## Types

RTCRoomActionListener
Link copied to clipboard
public interface RTCRoomActionListener

## Functions

addNavigationObserver
Link copied to clipboard
public void addNavigationObserver(NavigationObserver navigationObserver)
AnswerRTCLiveInvitation
Link copied to clipboard
public void AnswerRTCLiveInvitation(String roomId, int answer, String anchorId, String peerRoomId, String sessionId, String content, String key, String value, IRongCoreCallback.OperationCallback callback)
CancelRTCLiveInvitation
Link copied to clipboard
public void CancelRTCLiveInvitation(String roomId, String anchorId, String peerRoomId, String inviteInfo, String sessionId, IRongCoreCallback.OperationCallback callback)
CancelRTCSignaling
Link copied to clipboard
public void CancelRTCSignaling()
exitRTCRoom
Link copied to clipboard
public void exitRTCRoom(String roomId, IRongCoreCallback.OperationCallback callback)
getInstance
Link copied to clipboard
public static IMLibRTCClient getInstance()
getNavJWT
Link copied to clipboard
public String getNavJWT()
getNavPreferenceValue
Link copied to clipboard
public String getNavPreferenceValue(String navPreferenceKey)
getRTCConfig
Link copied to clipboard
@Deprecated()
public void getRTCConfig(String model, String osVersion, long timestamp, IRongCoreRTCCallback.IRTCConfigCallback callback)
public void getRTCConfig(String model, String osVersion, long timestamp, String sdkVersion, IRongCoreRTCCallback.IRTCConfigCallback callback)
getRTCToken
Link copied to clipboard
public void getRTCToken(String roomId, int roomType, int mediaType, IRongCoreCallback.ResultCallback<String> resultCallback)
getRTCUserData
Link copied to clipboard
public void getRTCUserData(String roomId, int order, IRongCoreRTCCallback.IRTCDataCallback callback)
public void getRTCUserData(String roomId, List<String> userIds, IRongCoreRTCCallback.IRTCDataCallback callback)
getRTCUsers
Link copied to clipboard
public void getRTCUsers(String roomId, int order, IRongCoreRTCCallback.IRTCDataCallback callback)
getVoIPInfo
Link copied to clipboard
public String getVoIPInfo()
HangupRTCLiveInvitation
Link copied to clipboard
public void HangupRTCLiveInvitation(String roomId, String peerRoomId, String sessionId, String content, Array<String> keys, IRongCoreCallback.OperationCallback callback)
isGzipEnabled
Link copied to clipboard
public boolean isGzipEnabled()
Http 请求是否开启 Gzip 压缩
joinRTCRoomAndGetData
Link copied to clipboard
public void joinRTCRoomAndGetData(String roomId, IRongCoreRTCCallback.IRTCJoinRoomCallback callback)
public void joinRTCRoomAndGetData(String roomId, int roomType, int broadcastType, String key, String value, IRongCoreRTCCallback.IRTCJoinRoomCallbackEx<Array<Object>> callback)
OnServiceConnected
Link copied to clipboard
public void OnServiceConnected(IHandler mLibHandler)
OnServiceDisconnected
Link copied to clipboard
public void OnServiceDisconnected()
requestNav
Link copied to clipboard
public void requestNav(String appKey, String token, boolean notify, String reason)
刷新IM Nav，来重新获取导航jwt
rtcDeleteInnerData
Link copied to clipboard
public void rtcDeleteInnerData(String roomId, int type, Array<String> keys, String objectName, String content, IRongCoreCallback.OperationCallback callback)
rtcDeleteOuterData
Link copied to clipboard
public void rtcDeleteOuterData(String roomId, int type, Array<String> keys, String objectName, String content, IRongCoreCallback.OperationCallback callback)
rtcGetInnerData
Link copied to clipboard
public void rtcGetInnerData(String roomId, int type, Array<String> keys, IRongCoreRTCCallback.IRtcIODataCallback callback)
rtcGetOuterData
Link copied to clipboard
public void rtcGetOuterData(String roomId, int type, Array<String> keys, IRongCoreRTCCallback.IRtcIODataCallback callback)
rtcPutInnerDatum
Link copied to clipboard
public void rtcPutInnerDatum(String roomId, int type, String key, String value, String objectName, String content, IRongCoreCallback.OperationCallback callback)
rtcPutOuterDatum
Link copied to clipboard
public void rtcPutOuterDatum(String roomId, int type, String key, String value, String objectName, String content, IRongCoreCallback.OperationCallback callback)
rtcSetUserResource
Link copied to clipboard
public void rtcSetUserResource(String roomId, Array<RTCStatusDate> kv, String objectName, Array<RTCStatusDate> content, IRongCoreCallback.OperationCallback callback)
RTCSignaling
Link copied to clipboard
public void RTCSignaling(String roomId, String signalingName, boolean isQuery, Array<byte> pbBuffer, int timeout, IRongCoreCallback.ResultCallback<Array<byte>> resultCallback)
RTCSignalingByDefaultTimeout
Link copied to clipboard
public void RTCSignalingByDefaultTimeout(String roomId, String signalingName, boolean isQuery, Array<byte> pbBuffer, IRongCoreCallback.ResultCallback<Array<byte>> resultCallback)
sendRTCDirectMessage
Link copied to clipboard
public void sendRTCDirectMessage(String targetId, MessageContent content, Array<String> userIds, String pushContent, String pushData, SendMessageOption option, boolean isFilterBlackList, IRongCoreCallback.ISendMessageCallback callback)
发送 RTC 定向消息, 不在房间的人也能收到消息
SendRTCHeartbeat
Link copied to clipboard
public void SendRTCHeartbeat(Array<String> roomId, int timeout)
SendRTCLiveInvitation
Link copied to clipboard
public void SendRTCLiveInvitation(String roomId, String anchorId, String peerRoomId, String inviteInfo, String sessionId, int timeout, IRongCoreCallback.OperationCallback callback)
sendRTCPing
Link copied to clipboard
public void sendRTCPing(String roomId, IRongCoreCallback.OperationCallback callback)
SetRTCHeartbeatListener
Link copied to clipboard
public void SetRTCHeartbeatListener(Stub listener)
SetRTCHeartbeatListenerEx
Link copied to clipboard
public void SetRTCHeartbeatListenerEx(Object listenObject)
setRtcRoomActionListener
Link copied to clipboard
public static void setRtcRoomActionListener(IMLibRTCClient.RTCRoomActionListener roomActionListener)
SetRTCRoomEventListener
Link copied to clipboard
public void SetRTCRoomEventListener(Stub listener)
setRTCUserData
Link copied to clipboard
public void setRTCUserData(String id, int type, HashMap data, String objectName, String content, IRongCoreCallback.OperationCallback callback)
setRTCUserState
Link copied to clipboard
public void setRTCUserState(String roomId, String state, IRongCoreCallback.OperationCallback callback)
setUseRTCOnly
Link copied to clipboard
public void setUseRTCOnly(IRongCoreCallback.ResultCallback<Boolean> callback)
solveServerHosts
Link copied to clipboard
public void solveServerHosts(String host, IRongCoreCallback.ResultCallback<List<String>> callback)