Getting Started
Initial Requirements
Before starting developing using PrivMX Endpoint Kotlin follow our quick start guide
To connect it to your environment, you need:
Bridge URL
- URL address of the instance of your PrivMX BridgeSolution ID
- ID of the Solution provided by PrivMX Bridge during its initialization processUser Private Key
- the private key from the user's public-private key pair
You also need to use your own application server to manage users (and their keys) and Contexts.
Adding Dependencies
- Add
mavenCentral()
repository to yoursettings.gradle.kts
:
- Add dependency to
build.gradle.kts
:
JVM
You have to pass path to PrivMX Endpoint native libraries directory by configuring
-Djava.library.path=<path-to-your-libraries-dir>
system property during run application.
You can download pre-compiled zipped native binaries for each supported JVM platform from GitHub Releases.
Android
Native Libraries
Before build your project you have to attach PrivMX Endpoint native libraries to Android build process by adding them
to jniLibs sourceSet directory (src/main/jniLibs
by default) for each supported ABI.
You can download pre-compiled zipped native binaries for each supported Android ABI from GitHub Releases.
Required Permissions
PrivMX Endpoint requires to add the following permissions to your AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET"/>
Initial Assumptions
The initial assumptions for all the code examples below are as follows:
Connecting to PrivMX Bridge
To use any of the library's elements, you must first connect to PrivMX Bridge. Use the API keys mentioned earlier:
The active connection is kept by container
and can be accessed using container.getEndpoint(Long)
method.
Disconnecting from PrivMX Bridge
Closing PrivmxEndpointContainer
When you finish working with the container
, close it to end all connections, close the event loop, and release the resources being used.
You can also use a use
function in Kotlin.
Next Steps
With everything ready to go, now it's time to start using all of the platform's capabilities.
Learn how to use:
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.
PrivMX Endpoint Kotlin v2.2