PropertyDelegateProvider

fun interface PropertyDelegateProvider<in T, out D>(source)

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.

Since Kotlin

1.4

Parameters

T

the type of object which owns the delegated property.

D

the type of property delegates this provider provides.

Functions

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

Returns the delegate of the property for the given object.

Since Kotlin 1.4