Skip to content
Guest
← All References
Kotlin & Android Kotlin 2.0 / Jetpack Compose / Android

Kotlin & Android Quick Reference

Essential Kotlin null-safety, data/sealed classes, Jetpack Compose state & lists, ViewModel/Coroutines, Room DAO, and Android build commands.

val name: String?; @Composable; StateFlow; viewModelScope.launch

Core Kotlin & Android Cheat Sheet

ConceptSyntax / Command
Immutable / mutable bindingval count = 0 vs var count = 0
Safe call & Elvis fallbackval label = user?.name ?: "Guest"
Data class copystate.copy(isLoading = false)
Compose remembered statevar query by remember { mutableStateOf("") }
Efficient scrollable listLazyColumn { items(list, key = { it.id }) { ... } }
Lifecycle-safe coroutineviewModelScope.launch { ... }
Offload I/O off UI threadwithContext(Dispatchers.IO) { ... }
Build Play Store bundle./gradlew bundleRelease

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind