Kotlin
Overview
KVDBs provide encrypted key-value databases.
Before working with KVDBs, follow our Getting Started Guide. It will show you how to set up your project to work with PrivMX Bridge. Sample code on this page is based on the initial assumptions.
Working with KVDBs
To access KVDBs methods, get the field kvdbApi
from active connection. Connection should be initialized with Modules.KVDB
passed to PrivmxEndpoint()
.
Creating KVDBs
Getting KVDBs
Define KVDB item class with decoded publicMeta
and privateMeta
:
Fetching the most recent KVDBs in given Context:
Managing KVDBs
To update a KVDB you must always provide its current version, as well as:
- list of users
- list of managers
- new private and public meta (even if it didn't change)
- KVDB's current version
true
if update action should be forced
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.