PropertyDelegateProvider

Common
JVM
JS
Native
1.4
fun interface PropertyDelegateProvider<in T, out D>

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

This is provided only for convenience; you don't have to extend this interface as long as your delegate provider has a method with the same signature.

Parameters

T - the type of object which owns the delegated property.

D - the type of property delegates this provider provides.

Functions

Common
JVM
JS
Native
1.0

provideDelegate

Returns the delegate of the property for the given object.

abstract operator fun provideDelegate(
    thisRef: T,
    property: KProperty<*>
): D