W3cubDocs

/Kotlin

Package kotlin.properties

Standard implementations of delegates for delegated properties and helper functions for implementing custom delegates.

Types

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

Delegates

Standard property delegates.

object Delegates
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

ObservableProperty

Implements the core logic of a property delegate for a read/write property that calls callback functions when changed.

abstract class ObservableProperty<T> : 
    ReadWriteProperty<Any?, T>
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

ReadOnlyProperty

Base interface that can be used for implementing property delegates of read-only properties.

interface ReadOnlyProperty<in R, out T>
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

ReadWriteProperty

Base interface that can be used for implementing property delegates of read-write properties.

interface ReadWriteProperty<in R, T>

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.properties/index.html