Package io.rong.imlib

Interface RongIMClient.RealTimeLocationListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onStatusChange(RealTimeLocationStatus status) The status of location sharing has changed.
      abstract void onReceiveLocation(double latitude, double longitude, String userId) Receives location sharing information.
      abstract void onReceiveLocationWithType(double latitude, double longitude, RealTimeLocationType type, String userId) Receives location sharing information.
      abstract void onParticipantsJoin(String userId) The other party has joined the location sharing.
      abstract void onParticipantsQuit(String userId) The other party has exited location sharing.
      abstract void onError(RealTimeLocationErrorCode errorCode) An error occurred during the location sharing process.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 - Latitude
        longitude - Longitude
        userId - Sender ID
      • onReceiveLocationWithType

         abstract void onReceiveLocationWithType(double latitude, double longitude, RealTimeLocationType type, String userId)

        Receives location sharing information.

        Parameters:
        latitude - Latitude
        longitude - Longitude
        type - Real-time location sharing type RealTimeLocationType
        userId - 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