Package io.rong.imlib
Interface RongIMClient.RealTimeLocationListener
-
- All Implemented Interfaces:
public interface RongIMClient.RealTimeLocationListener实时位置共享监听。
-
-
Method Summary
Modifier and Type Method Description abstract voidonStatusChange(RealTimeLocationConstant.RealTimeLocationStatus status)位置共享状态发生改变。 abstract voidonReceiveLocation(double latitude, double longitude, String userId)接收到位置共享信息。 abstract voidonReceiveLocationWithType(double latitude, double longitude, RealTimeLocationType type, String userId)接收到位置共享信息。 abstract voidonParticipantsJoin(String userId)对方加入位置共享。 abstract voidonParticipantsQuit(String userId)对方退出位置共享 abstract voidonError(RealTimeLocationConstant.RealTimeLocationErrorCode errorCode)位置共享过程出现错误。 -
-
Method Detail
-
onStatusChange
abstract void onStatusChange(RealTimeLocationConstant.RealTimeLocationStatus status)
位置共享状态发生改变。
- Parameters:
status- 空闲、加入、退出、建立连接等状态
-
onReceiveLocation
abstract void onReceiveLocation(double latitude, double longitude, String userId)
接收到位置共享信息。
- Parameters:
latitude- 维度longitude- 经度userId- 发送者 id
-
onReceiveLocationWithType
abstract void onReceiveLocationWithType(double latitude, double longitude, RealTimeLocationType type, String userId)
接收到位置共享信息。
- Parameters:
latitude- 维度longitude- 经度type- 实时共享坐标类型 RealTimeLocationTypeuserId- 发送者 id
-
onParticipantsJoin
abstract void onParticipantsJoin(String userId)
对方加入位置共享。
- Parameters:
userId- 加入者 id
-
onParticipantsQuit
abstract void onParticipantsQuit(String userId)
对方退出位置共享
- Parameters:
userId- 退出者 id
-
onError
abstract void onError(RealTimeLocationConstant.RealTimeLocationErrorCode errorCode)
位置共享过程出现错误。
- Parameters:
errorCode- 错误码
-
-
-
-