0PricingLogin
Kotlin Multiplatform Academy · Lesson

Why a Settings Abstraction

One API over SharedPreferences and NSUserDefaults.

The Storage Gap

Android and iOS each ship their own way to save small values. Without a shared layer, you would write that code twice. Let's fix that. 🔑

Two Native Stores

Android stores small key-value data in SharedPreferences, while iOS uses NSUserDefaults. Same idea, two very different APIs.

All lessons in this course

  1. Why a Settings Abstraction
  2. Read & Write Typed Values
  3. Defaults & Clearing Keys
  4. Store an Auth Token Securely
← Back to Kotlin Multiplatform Academy