kotlin.reflect.KProperty2.getDelegate

getDelegate

abstract fun getDelegate(receiver1: D, receiver2: E): Any?

Platform and version requirements: Kotlin 1.1

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

登录查看完整内容