RoomCryptoService

interface RoomCryptoService

Functions

Link copied to clipboard
abstract suspend fun enableEncryption(algorithm: String = MXCRYPTO_ALGORITHM_MEGOLM, force: Boolean = false)

Enable encryption of the room.

Link copied to clipboard
abstract fun encryptionAlgorithm(): String?
Link copied to clipboard
abstract fun isEncrypted(): Boolean
Link copied to clipboard
abstract suspend fun prepareToEncrypt()

Ensures all members of the room are loaded and outbound session keys are shared. If this method is not called, CryptoService will ensure it before sending events.

Link copied to clipboard
abstract fun shouldEncryptForInvitedMembers(): Boolean