public interface OmemoMessageListener
| Modifier and Type | Method and Description |
|---|---|
void |
onOmemoKeyTransportReceived(CipherAndAuthTag cipherAndAuthTag,
Message message,
Message wrappingMessage,
OmemoMessageInformation omemoInformation)
Gets called, whenever an OmemoElement without a body (an OmemoKeyTransportElement) is received.
|
void |
onOmemoMessageReceived(java.lang.String decryptedBody,
Message encryptedMessage,
Message wrappingMessage,
OmemoMessageInformation omemoInformation)
Gets called, whenever an OmemoMessage has been received and was successfully decrypted.
|
void onOmemoMessageReceived(java.lang.String decryptedBody, Message encryptedMessage, Message wrappingMessage, OmemoMessageInformation omemoInformation)
decryptedBody - Decrypted bodyencryptedMessage - Encrypted MessagewrappingMessage - Wrapping carbon message, in case the message was a carbon copy, else null.omemoInformation - Information about the messages encryption etc.void onOmemoKeyTransportReceived(CipherAndAuthTag cipherAndAuthTag, Message message, Message wrappingMessage, OmemoMessageInformation omemoInformation)
cipherAndAuthTag - transported Cipher along with an optional AuthTagmessage - Message that contained the KeyTransportwrappingMessage - Wrapping message (eg. carbon), or nullomemoInformation - Information about the messages encryption etc.