prepareKeysBackupVersion

abstract suspend fun prepareKeysBackupVersion(password: String?, progressListener: ProgressListener?): MegolmBackupCreationInfo

Set up the data required to create a new backup version. The backup version will not be created and enabled until createKeysBackupVersion is called. The returned MegolmBackupCreationInfo object has a recoveryKey member with the user-facing recovery key string.

Parameters

password

an optional passphrase string that can be entered by the user when restoring the backup as an alternative to entering the recovery key.

progressListener

a progress listener, as generating private key from password may take a while