Connect to Atlas App Services - Kotlin SDK
On this page
The App
class is the interface to App Services. This class provides
access to authentication and Device Sync.
Access the App
Pass the App ID for your App, which you can find in the App Services UI.
val app = App.create(YOUR_APP_ID)
Note
You can create multiple App
instances to connect to multiple
Apps or to the same App with different configurations. All
App
instances that share the same App ID use the same underlying
connection.
Configuration
For more granular control of the details of your app connection,
such as custom timeouts for connections and keys for local encryption,
use the AppConfiguration.Builder to control details of your App
:
App.create( AppConfiguration.Builder(YOUR_APP_ID) .log(LogLevel.ALL) .build())
Note
For most use cases, you only need your application's App ID to connect to App Services. The other settings demonstrated here are optional.