~/talk

Mastering API Visibility in Kotlin

Talkat Android Worldwide April 2021 · on Tuesday, 2021-04-27· [kotlin, developer-experience]
slides:none on file

Kotlin gives concrete levers: use explicit API mode to force explicit visibility and public return types so library signatures don’t change by type inference; prefer internal for module-only implementations and test visibility; mark inline helpers with published API to allow inlining without leaking non‑public symbols; annotate JVM-only helpers with jvmSynthetic to hide them from Java; use @Deprecated with a replacement string or the hidden deprecation level to migrate or remove APIs without breaking binary compatibility.

AI-written summary · about

  1. 0:00Start
  2. 0:31Mastering Api Visibility in Kotlin
  3. 2:47Create Minimal Apis
  4. 3:31Why Do We Want Minimal Apis
  5. 4:22Unused Public Api
  6. 4:58Remove a Public Api
  7. 7:13Hidden
  8. 8:09Easier To Learn
  9. 10:18Default Visibility in Kotlin
  10. 13:30Testing
  11. 16:09The Jvm Synthetic Annotation
  12. 16:52Explicit Api Mode
  13. 17:23To Enable Explicit Api Mode
  14. 18:09Progressive Mode
  15. 20:16Explicit Types
  16. 23:20Published Api
  17. 24:20Opt-In Apis
  18. 29:32Resources
  19. 30:20Sum Up Mastering Api Visibility in Kotlin
  20. 31:36Why Was Package Level Visibility Removed in Kotlin
  21. 32:17What Software I Used To Create this Presentation
  22. 34:56Thank You
~/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.