Package io.rong.imlib

Interface RongIMClient.EncryptedSessionConnectionListener

    • 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 onEncryptedSessionRequest(String targetId, boolean isSuccess) Initiates an encrypted session request.
      abstract void onEncryptedSessionResponse(String targetId) Responds to an encrypted session request.
      abstract void onEncryptedSessionEstablished(String targetId) Establishes an encrypted session.
      abstract void onEncryptedSessionCanceled(String targetId) Cancels an encrypted session.
      abstract void onEncryptedSessionTerminated(String targetId) Terminates an encrypted session.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onEncryptedSessionRequest

         abstract void onEncryptedSessionRequest(String targetId, boolean isSuccess)

        Initiates an encrypted session request.

        Upon successful sending of the request message, an encrypted session is created in the requester's database with the status: REQUEST.

        Parameters:
        targetId - The targetId of the other party.
      • onEncryptedSessionResponse

         abstract void onEncryptedSessionResponse(String targetId)

        Responds to an encrypted session request.

        Indicates that the response message was sent successfully, and an encrypted session is created in the responder's database with the status: RESPONSE

        Parameters:
        targetId - encId + ;;; + targetId
      • onEncryptedSessionEstablished

         abstract void onEncryptedSessionEstablished(String targetId)

        Establishes an encrypted session.

        Upon successful creation of the encrypted session, the status in the database will be: ENCRYPTED

        Parameters:
        targetId - encId + ;;; + targetId
      • onEncryptedSessionCanceled

         abstract void onEncryptedSessionCanceled(String targetId)

        Cancels an encrypted session.

        When an encrypted conversation is canceled (e.g., when another device has successfully established the session during multi-device login), the status in the database is set to: CANCELED

        When the response is from multiple devices, the first device to respond will trigger the sending of an RCEncryptCancelMessage to the remaining devices by the session requester.

        Parameters:
        targetId - encid + ;;; + targetId.
      • onEncryptedSessionTerminated

         abstract void onEncryptedSessionTerminated(String targetId)

        Terminates an encrypted session.

        An encrypted session ends when the peer deletes the conversation or logs out. The database status will be: TERMINATED

        Parameters:
        targetId - encId + ;;; + targetId