KReadOnlyProperty

interface KReadOnlyProperty<in T, out V>

A delegate interface extending similar to ReadOnlyProperty, but providing a more function onDelegate which contains thisRef and property.

Note: this function is needless before you excel at Kotlin.

Functions

Link copied to clipboard
abstract fun getValue(thisRef: T, property: KProperty<*>): V
Link copied to clipboard
abstract fun onDelegate(thisRef: T, property: KProperty<*>)
Link copied to clipboard
open operator fun provideDelegate(thisRef: T, property: KProperty<*>): ReadOnlyProperty<T, V>

Inheritors

Link copied to clipboard