W3cubDocs

/Kotlin

provideDelegate

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
abstract operator fun provideDelegate(
    thisRef: T, 
    property: KProperty<*>
): D

Returns the delegate of the property for the given object.

This function can be used to extend the logic of creating the object (e.g. perform validation checks) to which the property implementation is delegated.

Parameters

thisRef - the object for which property delegate is requested.

property - the metadata for the property.

Return the property delegate.

© 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/provide-delegate.html