Using Google Maps Platform with Idiomatic Kotlin
summary
Kotlin wrappers Maps KTX and Places KTX convert callback-based Google Maps and Places APIs into suspend functions so asynchronous camera animations and Places autocomplete calls can be written as sequential coroutines. The talk demonstrates using awaitAnimateCamera to animate the map camera (e.g., Mountain View, pause, then Mexico City), awaitFindAutocompletePredictions for autocomplete, and using lifecycle_runtime_ktx to tie coroutine scopes to UI lifecycles; sample apps and the KTX libraries are open source and runnable.
AI-written summary · about
chapters (7)
- 0:00Welcome Google Maps Platform Kotlin
- 1:49Android SDK overview
- 3:15Kotlin Extensions KTX
- 4:44Maps KTX demo
- 8:24Places KTX features
- 9:53SDK with Kotlin
- 10:35Learning resources outlook
related talks
20mLean Async Code with Kotlin's Coroutines
20mLean async code with Kotlin´s coroutines
42mKotlin Coroutines: An Intro to Practical Use on Android
40mBuilding Asynchronous Mechanisms in Android App, Using Kotlin Coroutines
43mAndroid Jetpack ❤️ Kotlin: On the road to more wholesome APIs
38mWhen Android Meets Maps
41mComposifying Your Not-Compose Code
18mAbstracting the Map in Android Architecture
