# Mastering API Visibility in Kotlin

DevFeed: [Mastering API Visibility in Kotlin](<https://devfeed.tech/articles/mastering-api-visibility-in-kotlin-27073.md>)

Original publisher: [Read original article](<https://zsmb.co/mastering-api-visibility-in-kotlin/>)

Author: Márton Braun

Published: 2020-11-04T17:00:00Z

Content type: tutorial

Language: en

Sources: [zsmb.co](<https://devfeed.tech/sources/zsmb-co.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [API](<https://devfeed.tech/topics/api.md>), [Library](<https://devfeed.tech/topics/library.md>), [modules](<https://devfeed.tech/topics/modules.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [marton-braun](<https://devfeed.tech/tags/marton-braun.md>), [multi-module-project](<https://devfeed.tech/tags/multi-module-project.md>), [zsmb](<https://devfeed.tech/tags/zsmb.md>), [zsmb-co](<https://devfeed.tech/tags/zsmb-co.md>), [zsmb13](<https://devfeed.tech/tags/zsmb13.md>), [zsmbco](<https://devfeed.tech/tags/zsmbco.md>)

## AI overview

This article explains how minimizing API visibility in Kotlin libraries and multi-module projects reduces the declarations that must be maintained, limits compatibility concerns, and makes APIs easier to learn and use.

## Source excerpt

When designing a library, minimizing your API surface - the types, methods, properties, and functions you expose to the outside world - is a great idea. This doesn't apply to just libraries: it's a consideration you should make for every module in a multi-module project.