Interface IRongCoreListener.EncryptedSessionConnectionListener
-
- All Implemented Interfaces:
public interface IRongCoreListener.EncryptedSessionConnectionListener
Listens for the establishment status of encrypted session signaling.
Initiated by: onEncryptedSessionRequest Response: onEncryptedSessionResponse Established successfully: onEncryptedSessionEstablished Canceled encrypted session: onEncryptedSessionCanceled Terminated encrypted session: onEncryptedSessionTerminated
-
-
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. -
-
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
-
-
-
-