W3cubDocs

/Kotlin

getDelegate

Platform and version requirements: JVM (1.1), JS (1.1)
abstract fun getDelegate(receiver1: D, receiver2: E): Any?
For JVM

Returns the value of the delegate if this is a delegated property, or null if this property is not delegated. See the Kotlin language documentation for more information.

In case of the extension property in a class, the instance of the class should be passed first and the instance of the extension receiver second.

Parameters

receiver1 - the instance of the first receiver.

receiver2 - the instance of the second receiver.

See Also

kotlin.reflect.full.getExtensionDelegate

For JS

Returns the value of the delegate if this is a delegated property, or null if this property is not delegated. See the Kotlin language documentation for more information.

In case of the extension property in a class, the instance of the class should be passed first and the instance of the extension receiver second.

Parameters

receiver1 - the instance of the first receiver.

receiver2 - the instance of the second receiver.

See Also

kotlin.reflect.full.getExtensionDelegate

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-property2/get-delegate.html