~/talk

Using platform-specific code in Kotlin Multiplatform

Talkat droidcon New York 2024 · 2024-09-19..09-20· [kotlin]
links:none on file
slides:none on file

Kotlin Multiplatform projects use native APIs under the hood and often combine shared Kotlin with platform scaffolding: a published multiplatform settings library wraps Android SharedPreferences and Apple UserDefaults; expect/actual factories pick default implementations; 32‑ vs 64‑bit Apple integer differences require platform conversions; analytics uses an injected platform writer for vendor SDKs; a socket factory exposes Java sockets to common sync logic; local reminders flow through a shared repository while Android uses WorkManager and iOS uses BGTask APIs. iOS work requires iOS developers.

AI-written summary · about

  1. 0:00Kotlin Multiplatform intro
  2. 4:02Platform-specific code need
  3. 19:57Patterns for platform code
  4. 30:10Key takeaways and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.