SUMMARY

Overview

Getting Started

Basics

  • Basic Types

  • Packages

  • Control Flow

  • Returns and Jumps

Classes and Objects

  • Classes and Inheritance

  • Properties and Fields

  • Interfaces

  • Visibility Modifiers

  • Extensions

  • Data Classes

  • Sealed Classes

  • Generics

  • Nested Classes

  • Enum Classes

  • Objects

  • Delegation

  • Delegated Properties

Functions and Lambdas

  • Functions

  • Lambdas

  • Inline Functions

  • Coroutines

Other

  • Destructuring Declarations

  • Collections

  • Ranges

  • Type Checks and Casts

  • This expressions

  • Equality

  • Null Safety

  • Exceptions

  • Annotations

  • Reflection

  • Type-Safe Builders

  • Type Aliases

Reference

  • API Reference

  • Grammar

  • Compatibility

Java Interop

  • Calling Java from Kotlin

  • Calling Kotlin from Java

JavaScript

  • Dynamic Type

  • Calling JavaScript from Kotlin

  • Calling Kotlin from JavaScript

  • JavaScript Modules

  • JavaScript Reflection

Tools

  • Documenting Kotlin Code

  • Using Kapt

  • Using Gradle

  • Using Maven

  • Using Ant

  • Kotlin and OSGi

  • Compiler plugins

FAQ

Last updated