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<V> : 
    ReadWriteProperty<Any?, V>
Platform and version requirements: JVM (1.4), JS (1.4), Native (1.4)

PropertyDelegateProvider

Base interface that can be used for implementing property delegate providers.

fun interface PropertyDelegateProvider<in T, out D>
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.

fun interface ReadOnlyProperty<in T, out V>
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 T, V> : ReadOnlyProperty<T, V>

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