Docs Menu

Atlas Device SDK for Kotlin

Use the Atlas Device SDK for Kotlin to develop Android or iOS apps using the Android platform or Kotlin Multiplatform (KMP).

Learning Paths
Functions Icon

Quick Start

Minimal-explanation code examples of how to work with the SDK. Write to the device database, and sync with other devices.

See Code Examples

Atlas Device SDK Mobile Icon

Working Example App

Learn from example by dissecting a working Kotlin client app that uses the Kotlin SDK.

Explore an Example App

Tutorial Icon

Guided Tutorial

Follow a guided tutorial to learn how to adapt the example app to create your own working app.

Follow the Tutorial

What You Can Do

Use the SDK's open-source database - Realm - as an object store on the device. Use Device Sync to keep data in sync with your MongoDB Atlas cluster and other clients.

Essential Documentation
Atlas Device SDK Icon

Kotlin API Reference

Explore generated reference docs for the SDK's Kotlin APIs.

Kotlin API Reference

Migrate Icon

Migrate from the Java SDK to the Kotlin SDK

Learn why and how to switch from the Java SDK to the Kotlin SDK.

Migrate from Java SDK to Kotlin SDK

Explore engineering and expert-provided example projects to learn best practices and common development patterns using the Kotlin SDK. Check out the Example Projects page for more Kotlin sample apps.

Encryption Icon

Property-Level Encryption

Enhance user data security with property-level encryption.

Example project

Atlas Device SDK Offline Icon

Offline Login and Database Access

Log in a Device Sync user and open a synced database offline.

Example project

Users Icon

User's Online State

Detect connectivity and activity of users and devices.

Example project

Cloud Mobile Transfer Icon

Connection State Change & Error Handling

Learn best practices around handling Sync errors and client reset strategies.

Example project