public static interface RongIMClient.RealTimeLocationListener
限定符和类型 | 方法和说明 |
---|---|
void |
onError(io.rong.imlib.location.RealTimeLocationConstant.RealTimeLocationErrorCode errorCode)
位置共享过程出现错误。
|
void |
onParticipantsJoin(java.lang.String userId)
对方加入位置共享。
|
void |
onParticipantsQuit(java.lang.String userId)
对方退出位置共享
|
void |
onReceiveLocation(double latitude,
double longitude,
java.lang.String userId)
接收到位置共享信息。
|
void |
onReceiveLocationWithType(double latitude,
double longitude,
RealTimeLocationType type,
java.lang.String userId)
接收到位置共享信息。
|
void |
onStatusChange(io.rong.imlib.location.RealTimeLocationConstant.RealTimeLocationStatus status)
位置共享状态发生改变。
|
void onStatusChange(io.rong.imlib.location.RealTimeLocationConstant.RealTimeLocationStatus status)
status
- 空闲、加入、退出、建立连接等状态void onReceiveLocation(double latitude, double longitude, java.lang.String userId)
latitude
- 维度longitude
- 经度userId
- 发送者 idvoid onReceiveLocationWithType(double latitude, double longitude, RealTimeLocationType type, java.lang.String userId)
latitude
- 维度longitude
- 经度type
- 实时共享坐标类型 @see { RealTimeLocationType}userId
- 发送者 idvoid onParticipantsJoin(java.lang.String userId)
userId
- 加入者 idvoid onParticipantsQuit(java.lang.String userId)
userId
- 退出者 idvoid onError(io.rong.imlib.location.RealTimeLocationConstant.RealTimeLocationErrorCode errorCode)
errorCode
- 错误码Copyright © 2020 RongCloud. All Rights Reserved.