W3cubDocs

/Kotlin

PropertyDelegateProvider

Platform and version requirements: JVM (1.4), JS (1.4), 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

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

provideDelegate

Returns the delegate of the property for the given object.

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

© 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/-property-delegate-provider/index.html