Package io.rong.imlib

Interface IRongCoreListener.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) Initiate 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)

        Initiate an encrypted session request.

        If the request message is successfully sent, an encrypted session will be 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.

        When the encrypted session is successfully created, the status in the database is: ENCRYPTED

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

         abstract void onEncryptedSessionCanceled(String targetId)

        Cancels an encrypted session.

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

        In a multi-device scenario, when one of the devices responds first, the remaining devices will receive an RCEncryptCancelMessage sent by the session requester.

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

         abstract void onEncryptedSessionTerminated(String targetId)

        Terminates an encrypted session.

        When an encrypted conversation ends (e.g., the other party deletes the session or logs out), the status in the database is: TERMINATED

        Parameters:
        targetId - encId + ;;; + targetId