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) 位置共享状态发生改变。
      abstract void onReceiveLocation(double latitude, double longitude, String userId) 接收到位置共享信息。
      abstract void onReceiveLocationWithType(double latitude, double longitude, RealTimeLocationType type, String userId) 接收到位置共享信息。
      abstract void onParticipantsJoin(String userId) 对方加入位置共享。
      abstract void onParticipantsQuit(String userId) 对方退出位置共享
      abstract void onError(RealTimeLocationErrorCode errorCode) 位置共享过程出现错误。
      • 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)

        位置共享状态发生改变。

        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 - 实时共享坐标类型 RealTimeLocationType
        userId - 发送者 id
      • onParticipantsJoin

         abstract void onParticipantsJoin(String userId)

        对方加入位置共享。

        Parameters:
        userId - 加入者 id
      • onParticipantsQuit

         abstract void onParticipantsQuit(String userId)

        对方退出位置共享

        Parameters:
        userId - 退出者 id
      • onError

         abstract void onError(RealTimeLocationErrorCode errorCode)

        位置共享过程出现错误。

        Parameters:
        errorCode - 错误码