Package io.rong.imlib
Interface RongIMClient.RealTimeLocationListener
-
- All Implemented Interfaces:
public interface RongIMClient.RealTimeLocationListenerReal-time location sharing listener.
-
-
Method Summary
Modifier and Type Method Description abstract voidonStatusChange(RealTimeLocationStatus status)The status of location sharing has changed. abstract voidonReceiveLocation(double latitude, double longitude, String userId)Receives location sharing information. abstract voidonReceiveLocationWithType(double latitude, double longitude, RealTimeLocationType type, String userId)Receives location sharing information. abstract voidonParticipantsJoin(String userId)The other party has joined the location sharing. abstract voidonParticipantsQuit(String userId)The other party has exited location sharing. abstract voidonError(RealTimeLocationErrorCode errorCode)An error occurred during the location sharing process. -
-
Method Detail
-
onStatusChange
abstract void onStatusChange(RealTimeLocationStatus status)
The status of location sharing has changed.
- Parameters:
status- Indicates the status, such as idle, joining, exiting, or establishing a connection.
-
onReceiveLocation
abstract void onReceiveLocation(double latitude, double longitude, String userId)
Receives location sharing information.
- Parameters:
latitude- Latitudelongitude- LongitudeuserId- Sender ID
-
onReceiveLocationWithType
abstract void onReceiveLocationWithType(double latitude, double longitude, RealTimeLocationType type, String userId)
Receives location sharing information.
- Parameters:
latitude- Latitudelongitude- Longitudetype- Real-time location sharing type RealTimeLocationTypeuserId- Sender ID
-
onParticipantsJoin
abstract void onParticipantsJoin(String userId)
The other party has joined the location sharing.
- Parameters:
userId- The ID of the participant who joined
-
onParticipantsQuit
abstract void onParticipantsQuit(String userId)
The other party has exited location sharing.
- Parameters:
userId- The ID of the user who exited.
-
onError
abstract void onError(RealTimeLocationErrorCode errorCode)
An error occurred during the location sharing process.
- Parameters:
errorCode- Error code
-
-
-
-