- Jun 6, 2020
- 11,517
- 4,383
A key / value persistent store. The data is serialized using B4XSerializator and is stored in an internal database. The database can be shared between B4A, B4i and B4J.
Using KVS is similar to using a Map. You initialize it once and then you can put or get items with Put, Get or GetDefault methods.
The supported types of objects are:
Lists, Maps, Strings, primitives (numbers), user defined types and arrays (only arrays of bytes and arrays of objects are supported).
Including combinations of these types (a list that holds maps for example).
Custom types should be declared in the main module or in B4XMainPage.
Bitmaps are supported with PutBitmap / GetBitmap methods.
Spoiler: Encryption
Encryption is also supported but is not enabled by default as it requires some configuration:
1. Add KVS_ENCRYPTION to the build configuration (Ctrl + B):
2.
B4A: Add reference to B4XEncryption.
B4i: Add reference to iEncryption
B4J...
Using KVS is similar to using a Map. You initialize it once and then you can put or get items with Put, Get or GetDefault methods.
The supported types of objects are:
Lists, Maps, Strings, primitives (numbers), user defined types and arrays (only arrays of bytes and arrays of objects are supported).
Including combinations of these types (a list that holds maps for example).
Custom types should be declared in the main module or in B4XMainPage.
Bitmaps are supported with PutBitmap / GetBitmap methods.
Spoiler: Encryption
Encryption is also supported but is not enabled by default as it requires some configuration:
1. Add KVS_ENCRYPTION to the build configuration (Ctrl + B):
برای دیدن لینک ها باید ثبت نام کنید
2.
B4A: Add reference to B4XEncryption.
B4i: Add reference to iEncryption
B4J...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید