Skip to content

retrieveMultipleEncryptionSessionsAsync

@JvmOverloads

suspend fun retrieveMultipleEncryptionSessionsAsync(sessionIds: Array<String>, useCache: Boolean = true, lookupProxyKey: Boolean = false, lookupGroupKey: Boolean = true): Array<EncryptionSession>

Retrieve multiple encryption sessions with an Array of sessionIds, and return an Array of the associated EncryptionSession instances, with which you can then encrypt / decrypt multiple messages. The returned array of EncryptionSession instances is in the same order as the input array.

Return

The Array of retrieved EncryptionSession instances.

Parameters

sessionIdsThe IDs of sessions to retrieve.
useCacheWhether or not to use the cache (if enabled globally).
lookupProxyKeyWhether or not to try retrieving the sessions via proxies.
lookupGroupKeyWhether or not to try retrieving the sessions via groups.

Throws

SealdException