All Stories

Kotlin - no_image

lateinitlateinit is a keyword used to define a property that will be initialized later. Unlike other properties declared with var, lateinit properties are not initialized at the time ...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

Functional (SAM) interfaces

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

ExtensionsKotlin provides the ability to extend a class or an interface with new functionality without having to inherit from the class or use design patterns such as Decorator. This ...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

Delegated propertiesThere are certain common kinds of properties, that, though you can implement them manually every time you need them, it would be helpful to implement them once and...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

Data objectsWhen printing a plain object declaration in Kotlin, the string representation contains both its name and the hash of the object:```object MyObject

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

сompanion object

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

StateFlow and SharedFlowStateFlow and SharedFlow are Flow APIs that enable flows to optimally emit state updates and emit values to multiple consumers.

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

JvmStatic and JvmField annotations

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

JvmOverloads annotationInstructs the Kotlin compiler to generate overloads for this function that substitute default parameter values.

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - flow_entities

FlowIn coroutines, a flow is a type that can emit multiple values sequentially, as opposed to suspend functions that return only a single value. For example, you can use a flow to rec...

In tutorial, flow_entities, kotlin, Jan 23, 2025