Interface RongIMClient.EncryptedSessionConnectionListener
-
- All Implemented Interfaces:
public interface RongIMClient.EncryptedSessionConnectionListenerListens for the establishment status of encrypted session signaling.
Initiated by: onEncryptedSessionRequest Responded by: onEncryptedSessionResponse Established successfully: onEncryptedSessionEstablished Canceled encrypted session: onEncryptedSessionCanceled Terminated encrypted session: onEncryptedSessionTerminated
-
-
Method Summary
Modifier and Type Method Description abstract voidonEncryptedSessionRequest(String targetId, boolean isSuccess)Initiates an encrypted session request. abstract voidonEncryptedSessionResponse(String targetId)Responds to an encrypted session request. abstract voidonEncryptedSessionEstablished(String targetId)Establishes an encrypted session. abstract voidonEncryptedSessionCanceled(String targetId)Cancels an encrypted session. abstract voidonEncryptedSessionTerminated(String targetId)Terminates an encrypted session. -
-
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
-
-
-
-