public static interface RongIMClient.RealTimeLocationListener
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onError(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(RealTimeLocationStatus status)
位置共享状态发生改变。
|
void onStatusChange(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 - 实时共享坐标类型 RealTimeLocationTypeuserId - 发送者 idvoid onParticipantsJoin(java.lang.String userId)
userId - 加入者 idvoid onParticipantsQuit(java.lang.String userId)
userId - 退出者 idvoid onError(RealTimeLocationErrorCode errorCode)
errorCode - 错误码