Initialization
Last updated
Was this helpful?
Last updated
Was this helpful?
To use the UnifiedSDK in your Android application, you must initialize it with your VPN backend URLs and carrier ID. You carrier ID is the unique project name that is assigned to your company when you access .
To initialize the UnifiedSDK in your Android application, use the following:
Java
Kotlin
In this example:
Use addUrl()
to specify one or more URLs for your VPN backend API endpoints. You can call addUrl()
multiple times to add additional URLs.
Set your unique carrier ID by calling carrierId()
with your carrier ID string.
Copy the code to the following:
After initializing the SDK, you can access the SDK instance from anywhere in your app code by using the following: